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

How to verifyIdToken with credential return from google #2391

Open
dieptang opened this issue Feb 25, 2023 · 1 comment
Open

How to verifyIdToken with credential return from google #2391

dieptang opened this issue Feb 25, 2023 · 1 comment
Labels
type: question Request for information or clarification. Not an issue.

Comments

@dieptang
Copy link

Hello there,

I am using Google Gsi for Google login with the callback resonsding client_id, credential, select_by. I sent it to the PHP server and using JWT for decode it but not help.

This is the code: $decode = JWT::decode($credential, $key, array('HS256'));

which $key is getting from Google Console "Client Secret" when create the credentials right?

I also give it a try with $client->verifyIdToken($credential); but it;s also not works. The error always appear is "Wrong number of segments"

Please help me solve it.

@dieptang
Copy link
Author

For now I know the decode with JWT successfully. But I cannot verifyToken. Can anybody help ?

@yash30201 yash30201 added the type: question Request for information or clarification. Not an issue. label Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants