Skip to content

Inconsistent/Incorrect behavior when fetching auth session without internet access #760

Closed
@miguelflores1993

Description

@miguelflores1993

my application is about an uber truck, where most of the road is OFFLINE.
but when he wants to make an offline request he skips that error.
Does anyone know how to apply it for offline mode?

error:
SessionExpiredException(message: Your session has expired., recoverySuggestion: Please sign in and reattempt the operation., underlyingException: null)

code:
CognitoAuthSession res = await Amplify.Auth.fetchAuthSession(options: CognitoSessionOptions(getAWSCredentials: true));

Metadata

Metadata

Assignees

Labels

authIssues related to the Auth CategorybugSomething is not working; the issue has reproducible steps and has been reproducedfixed-in-release-candidateIssues that have been addressed in the current release-candidate branchplatform-discrepancyIssues that result in inconsistent behavior between support platformsrequires-android-fixThis issue is the result of an underlying Amplify Android issue that needs to be fixed.requires-ios-fixThis issue is the result of an underlying Amplify iOS issue that needs to be fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions