Skip to content

Commit

Permalink
fix(auth-ui-svelte): make additionalData prop optional (#217)
Browse files Browse the repository at this point in the history
* fix(svelte): make additionalData prop optional

* Add changeset file to bump the package version

---------

Co-authored-by: Andrew Smith <[email protected]>
  • Loading branch information
sergejcodes and silentworks authored Sep 17, 2023
1 parent 7cd0d2d commit 819666d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tame-mails-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/auth-ui-svelte': patch
---

Make additionalData optional by default
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/Auth/Auth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
export let theme: 'default' | string = 'default';
export let localization: { variables?: I18nVariables } = {};
export let otpType: OtpType = 'email';
export let additionalData: { [key: string]: any } | undefined;
export let additionalData: { [key: string]: any } | undefined = undefined;
onMount(() => {
const { data: authListener } = supabaseClient.auth.onAuthStateChange((event) => {
Expand Down

0 comments on commit 819666d

Please sign in to comment.