-
Notifications
You must be signed in to change notification settings - Fork 3.6k
How to verifyIdToken with credential return from google #2391
Copy link
Copy link
Open
Labels
type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.