Open agrittiwari opened 4 months ago
This ticket also related to this ticket #1561
Same error
I seem to have the same error in a native Swift / SwiftUI project. I've had the error since Novembre 2023 AFAIK.
api(Auth.AuthError.APIError(msg: nil, code: nil, error: Optional("invalid request"), errorDescription: Optional("Bad ID token"), weakPassword: nil))
After doing :
let credentials = OpenIDConnectCredentials(provider: .apple, idToken: token)
let session = try await SupabaseDatabase.client.auth.signInWithIdToken(credentials: credentials)
Bug report
Describe the bug
IdentityToken
is returned by Apple, butsupabase.auth.signInwithIdToken
breaks and returns the erroTo Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
Expected behavior is for supabase to generate the accessToken and refreshToken for the session
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
I am using Expo, went through every code snippet out there and this issue particularly #Issue1401