
SasmitS.17939 (Customer) asked a question.
Hi Team. I'm new to Okta integration. I've created a developer account to go ahead with integrating Okta authentication with my application. We previously had Google authentication integrated with my application and we have chosen to move to Okta now. I have already created a SPA application which is working fine. However, the length of the authToken and idToken from the callback URL is very large compared to the Google Authentication API. Is there any configuration that can reduce the length of authToken and idToken in the response?

Hello @SasmitS.17939 (Customer) Thank you for reacting out to our Community!
The token length is based on the information being contained within it and how its signed. You could look to remove custom claims to reduce the size, but there should be no concerns on the length of the token.
Please see the below documentation that should provide some info on how to achieve this:
https://developer.okta.com/blog/2020/12/21/beginners-guide-to-jwt
Community members help others by clicking Like or Select as Best on responses. Try it today.
💡 Community Moderator Tip: Join a group today and connect with other Okta customers by region or product.
Thanks, @paul.stiniguta1.508386743840768E12 (Okta, Inc.) for your response. While searching for the answers to my query, I got the same suggestion. I'll try to reduce the information.