Skip to content
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

In Next.js, when using the fetchAuthSession method from the aws-amplify library, the token information obtained is decoded by default. However, you wish to obtain the undecoded JSON web token (JWT), specifically to access the raw JWT returned by the OAuth 2.0 token endpoint at /oauth2/token. #3852

Closed
4 tasks done
itlhq-first opened this issue Dec 13, 2023 · 4 comments
Labels
archived This issue has been locked. question Further information is requested

Comments

@itlhq-first
Copy link

Before opening, please confirm:

App Id

NEW_APP

AWS Region

eu-west-3

Amplify Hosting feature

Public APIs

Question

To use the fetchAuthSession method in a Next.js project with AWS Amplify and obtain the accessToken without JWT decoding, I want to receive the raw JWT returned by the OAuth 2.0 token endpoint without any transformation or decoding.

@itlhq-first itlhq-first added the question Further information is requested label Dec 13, 2023
@chinthaka-dinadasa
Copy link

Try accessToken.toString()

@mauerbac
Copy link
Member

Is this still an issue? Going to close and feel free to re-open

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Copy link

This issue has been automatically locked.

@github-actions github-actions bot added the archived This issue has been locked. label Jun 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants