Skip to content

feat: add dart function to handle Sign in with Apple - #332

Merged
stnguyen90 merged 1 commit into
mainfrom
feat-dart-sign-in-with-apple
Aug 7, 2025
Merged

stnguyen90 merged 1 commit into
mainfrom
feat-dart-sign-in-with-apple

Conversation

@stnguyen90

@stnguyen90 stnguyen90 commented Jul 16, 2025 •

Copy link
Copy Markdown
Contributor

What does this PR do?

The native Sign in with Apple flow uses the iOS' native OS to authenticate and generate an authorization code. This is preferable to the traditional OAuth2 flow because no new webview is required, and the user can make use of touch ID or Face ID to authenticate.

In order to finish the auth flow, the code needs to be exchanged for an ID token server-side. This function does that, and also creates a new user if one with the same email or id doesn't already exist.

Test Plan

Manually tested using the Playground for Flutter and Playground for Apple (SwiftUI).

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

Yes

The native Sign in with Apple flow uses the iOS' native OS to authenticate and generate an authorization code. This is preferable to the traditional OAuth2 flow because no new webview is required, and the user can make use of touch ID or Face ID to authenticate.

In order to finish the auth flow, the code needs to be exchanged for an ID token server-side. This function does that, and also creates a new user if one with the same email or id doesn't already exist.
@cutluk

cutluk commented Jul 23, 2025

Copy link
Copy Markdown

Excited for this to get merged, the traditional webview doesn't seem to work anymore. Need this working before I can launch.

@cutluk

cutluk commented Aug 5, 2025

Copy link
Copy Markdown

When can this PR be merged? It's blocking my ability to launch my app.

@adityaoberai

Copy link
Copy Markdown
Contributor

@stnguyen90 Function is tested successfully using the Apple playground

image image

@stnguyen90
stnguyen90 merged commit 79a7bcc into main Aug 7, 2025
@stnguyen90
stnguyen90 deleted the feat-dart-sign-in-with-apple branch August 7, 2025 14:19
@cutluk

cutluk commented Aug 8, 2025

Copy link
Copy Markdown

@stnguyen90 Function is tested successfully using the Apple playground

image image

Is there any documentation on how to use this yet?

@adityaoberai

adityaoberai commented Aug 8, 2025 •

Copy link
Copy Markdown
Contributor

@cutluk I am currently in the process of adding this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants