You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FirebaseSwiftUI/first_draft.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -640,6 +640,8 @@ When building custom views, you need to handle several things yourself that `Aut
640
640
641
641
You can create custom OAuth providers for services beyond the built-in ones:
642
642
643
+
> **⚠️ Important:** OIDC (OpenID Connect) providers must be configured in your Firebase project's Authentication settings before they can be used. In the Firebase Console, go to **Authentication → Sign-in method** and add your OIDC provider with the required credentials (Client ID, Client Secret, Issuer URL). You must also register the OAuth redirect URI provided by Firebase in your provider's developer console. See the [Firebase OIDC documentation](https://firebase.google.com/docs/auth/ios/openid-connect) for detailed setup instructions.
644
+
643
645
```swift
644
646
importFirebaseAuthSwiftUI
645
647
importFirebaseOAuthSwiftUI
@@ -655,6 +657,7 @@ struct ContentView: View {
655
657
.withOAuthSignIn(
656
658
OAuthProviderSwift(
657
659
providerId: "oidc.line", // LINE OIDC provider
660
+
scopes: ["profile", "openid", "email"], // LINE requires these scopes
0 commit comments