Skip to content

Add support for linking identities - #368

Merged
jan-tennert merged 13 commits into
developmentfrom
identities
Dec 3, 2023
Merged

jan-tennert merged 13 commits into
developmentfrom
identities

Conversation

@jan-tennert

@jan-tennert jan-tennert commented Dec 2, 2023 •

Copy link
Copy Markdown
Collaborator

What kind of change does this PR introduce?

Feature

What is the current behavior?

N/A

What is the new behavior?

Adds three new methods: linkIdentity, unlinkIdentity, currentIdentitiesOrNull
Example:

supabase.auth.linkIdentity(Google) //Works the same as signInWith(Google) under the hood
supabase.auth.unlinkIdentity("identity-id")

Additional context

See supabase/auth-js#814 and supabase/auth#313

@jan-tennert jan-tennert added the enhancement New feature or request label Dec 2, 2023
@jan-tennert jan-tennert self-assigned this Dec 2, 2023
@jan-tennert
jan-tennert marked this pull request as ready for review December 3, 2023 10:28
# Conflicts:
#	GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/Auth.kt
#	GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/AuthImpl.kt
@jan-tennert
jan-tennert merged commit 9df893b into development Dec 3, 2023
@jan-tennert
jan-tennert deleted the identities branch December 3, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant