Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for linking identities #368

Merged
merged 13 commits into from
Dec 3, 2023
Merged

Add support for linking identities #368

merged 13 commits into from
Dec 3, 2023

Conversation

jan-tennert
Copy link
Collaborator

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

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
9 checks passed
@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