-
Notifications
You must be signed in to change notification settings - Fork 202
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
Having issue with refresh token, getting Nil while calling awsmobileclient.default().gettokens in swift #3431
Comments
I see you're using Amplify version 2.25.0 - After calling https://docs.amplify.aws/swift/build-a-backend/auth/accessing-credentials/ |
After calling the documentation method I'm unable to call any mutation with this method appDelegate.appSyncClient?.fetch(query: query, cachePolicy: .fetchIgnoringCacheData) { [weak self] (result, error) in after getting the token AWSMobileClient is setting the auth token and can we do in the amplify V2 ? |
After calling
|
I'm facing a similar issue, but in my case, the whole cast is returning nil. When doing:
the cast on the iflet cognitoTokenProvider is nil so it won't work, but interesting thing is that if i debug it and do it in the debugger the cast works |
Hi @IvanSolaris , |
|
Describe the bug
while calling this method in swift on Xcode "awsmobileclient.default().gettokens" I am getting nil value.
I am calling after the successful login with Amplify.Auth.signIn
after that when I am trying to call any mutation I'm getting Auth error
Steps To Reproduce
Expected behavior
There should be an token in the return
Amplify Framework Version
2.25.0
Amplify Categories
API, Auth
Dependency manager
Swift PM
Swift version
5.8
CLI version
10.8.1
Xcode version
15.0.1
Relevant log output
Is this a regression?
Yes
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17.0
Device
iPhone 14 Pro Max
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: