Integrate JWT token for credential response #27
                  
                    
                      philippedasilva-orizone
                    
                  
                
                  started this conversation in
                Ideas
              
            Replies: 1 comment 7 replies
-
| We thought to keep this as possibly closer to the underlying google library. But your point is quite valid. Lot of people ask how to use it. I thought of two ways 
 | 
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I thought we could all benefit from getting a decrypted jwt token in the CredentialResponse type instead of the actual string returned by Google on successfully logging the user.
I know it would probably add a dependency but I believe we, end users of the component, would anyway still have to add it.
My own implementation uses the universal-base64Url package (https://www.npmjs.com/package/universal-base64url):
Ideally, I would actually get the CredentialResponse with a typed "credential" so I can directly benefit from my IDE intellisense with a
decodedToken.emailordecodedToken.family_name...Any reason not to do it?
Beta Was this translation helpful? Give feedback.
All reactions