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

Support for Access and Refresh Token in JWT Format. #93

Open
pradipthakuri1993 opened this issue Dec 21, 2022 · 0 comments
Open

Support for Access and Refresh Token in JWT Format. #93

pradipthakuri1993 opened this issue Dec 21, 2022 · 0 comments

Comments

@pradipthakuri1993
Copy link

pradipthakuri1993 commented Dec 21, 2022

Hi,
Can we generate access and refresh token in JWT format instead of normal string? Also, how can we return JTI values?
Thanks.

Current Format:

{
"access_token": "6hdWtMlPL1cXrFgZpeaXkkVI0cys5JPEOCZe17FDID",
"expires_in": 3600,
"refresh_token": "TL4GIU9RbZZ2TXzkF4s2gsEGIiV4VezrL3HaMlmTfsmMpTwX",
"scope": "checkcard",
"token_type": "Bearer"
}

Required Format

{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ6.eyJleHAiOjE4NzE2MTcwNzYsInVzZXJfbmFtZSI6Ik5FUFMiLCJhdXRob3JpdGllcyI6WyJVU0VSIl0sImp0aSI6ImU0ZDYwODk5LTllNjctNDJhYy1hMzZmLWM3ZjFjODE4NWI4OCIsImNsaWVudF9pZCI6Ik5FUFMiLCJzY29wZSI6WyJhcGkiXX0.sTuPN5qdLNplTG5BBf1YwYjS9X0b1APMz8nzNNTMGjs",
"token_type": "bearer",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI9IkpXVCJ6.eyJ1c2VyX25hbWUiOiJORVBTIiwic4NvcGUiOlsiYXBpIl0sImF0aSI3ImU0ZDYwODk5LTllNjctNDJhYy1hMzZmLWM3ZjFjODE4NWI4OCIsImV4cCI6MTY3MTYxNzI1NiwiYXV0aG9yaXRpZXMiOlsiVVNFUiJdLCJqdGkiOiI4MGMyNDNkMy1lMWI1LTRlYjctOTU5ZC0zNGJkOWM3NWRkMzMiLCJjbGllbnRfawQiOiJORVBTIn1.gARNnr_LK1hLFJXH_ULBcOvV2CV0xn08ajPee2shL6Q",
"expires_in": 3600,
"scope": "api",
"jti": "e4d60899-9e67-42ac-a36f-c7f1c8185b88"
}

Example guidance would be much appreciated. Tx.

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

No branches or pull requests

1 participant