Skip to content

fix(auth): Refresh token in non-state machine calls #2572

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

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

dnys1
Copy link
Contributor

@dnys1 dnys1 commented Jan 11, 2023

Currently, we are just pulling the tokens from the cache for calls not part of the state machine. This separates the API into two so that the majority funnel through fetchAuthSession which can handle token expiration appropriately.

@dnys1 dnys1 requested a review from a team as a code owner January 11, 2023 23:18
Currently, we are just pulling the tokens from the cache for calls not part of the state machine. This separates the API into two so that the majority funnel through `fetchAuthSession` which can handle token expiration appropriately.
@dnys1 dnys1 force-pushed the fix/auth/token-expiration-checks branch from 293c56f to f3748a9 Compare January 12, 2023 15:34
@dnys1 dnys1 merged commit d6f912b into aws-amplify:next Jan 12, 2023
@dnys1 dnys1 deleted the fix/auth/token-expiration-checks branch January 12, 2023 17:24
dnys1 pushed a commit to Jordan-Nelson/amplify-flutter that referenced this pull request Jan 30, 2023
- fix(auth)!: Fetch Auth Session offline behavior ([aws-amplify#2585](aws-amplify#2585))

- fix(api): do not include null values in ModelMutations.create ([aws-amplify#2504](aws-amplify#2504))
- fix(api): model helpers use targetNames in schemas with CPK enabled ([aws-amplify#2559](aws-amplify#2559))
- fix(auth): Clear credentials before redirect on Web ([aws-amplify#2603](aws-amplify#2603))
- fix(auth): Refresh token in non-state machine calls ([aws-amplify#2572](aws-amplify#2572))
- fix(authenticator): ARB syntax ([aws-amplify#2560](aws-amplify#2560))
- fix(aws_common): AWSFile contentType getter should not throw exception
- fix(datastore): prevent unhandled exception crashing App rebuilding sync expression
- fix(storage): incorrect transferred bytes emitted from upload task

- feat(analytics): Legacy data migration of Pinpoint Endpoint ID ([aws-amplify#2489](aws-amplify#2489))
- feat(smithy_aws): add copyWith to S3ClientConfig
- feat(storage): allow configuring transfer acceleration

Updated-Components: Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
dnys1 pushed a commit to Jordan-Nelson/amplify-flutter that referenced this pull request Jan 30, 2023
- fix(auth)!: Fetch Auth Session offline behavior ([aws-amplify#2585](aws-amplify#2585))

- fix(api): do not include null values in ModelMutations.create ([aws-amplify#2504](aws-amplify#2504))
- fix(api): model helpers use targetNames in schemas with CPK enabled ([aws-amplify#2559](aws-amplify#2559))
- fix(auth): Clear credentials before redirect on Web ([aws-amplify#2603](aws-amplify#2603))
- fix(auth): Refresh token in non-state machine calls ([aws-amplify#2572](aws-amplify#2572))
- fix(authenticator): ARB syntax ([aws-amplify#2560](aws-amplify#2560))
- fix(aws_common): AWSFile contentType getter should not throw exception
- fix(datastore): prevent unhandled exception crashing App rebuilding sync expression
- fix(storage): incorrect transferred bytes emitted from upload task

- feat(analytics): Legacy data migration of Pinpoint Endpoint ID ([aws-amplify#2489](aws-amplify#2489))
- feat(smithy_aws): add copyWith to S3ClientConfig
- feat(storage): allow configuring transfer acceleration

Updated-Components: Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee
Jordan-Nelson added a commit that referenced this pull request Jan 30, 2023
* chore(repo): Update component definition

Adds `amplify_api_dart` to the mix and creates components for DB Common, Secure Storage, and AWS Common

* fix(aft): Update changelog logic

For the version commit message changelog, only include publishable packages. Also updates base ref logic to ensure packages can be moved in and out of components.

* chore(version): Bump version

- fix(auth)!: Fetch Auth Session offline behavior ([#2585](#2585))

- fix(api): do not include null values in ModelMutations.create ([#2504](#2504))
- fix(api): model helpers use targetNames in schemas with CPK enabled ([#2559](#2559))
- fix(auth): Clear credentials before redirect on Web ([#2603](#2603))
- fix(auth): Refresh token in non-state machine calls ([#2572](#2572))
- fix(authenticator): ARB syntax ([#2560](#2560))
- fix(aws_common): AWSFile contentType getter should not throw exception
- fix(datastore): prevent unhandled exception crashing App rebuilding sync expression
- fix(storage): incorrect transferred bytes emitted from upload task

- feat(analytics): Legacy data migration of Pinpoint Endpoint ID ([#2489](#2489))
- feat(smithy_aws): add copyWith to S3ClientConfig
- feat(storage): allow configuring transfer acceleration

Updated-Components: Amplify Flutter, Amplify Dart, Amplify UI, DB Common, Secure Storage, AWS Common, Smithy, Worker Bee

---------

Co-authored-by: Dillon Nys <[email protected]>
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