google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

JWT "invalid_grant" in Signature in Google OAuth2

Open Omar7867 opened this issue 4 years ago • 3 comments

I keep getting this error when I post the JWT to Google:

{ "error": "invalid_grant", "error_description": "Invalid JWT Signature." }

when i use your code it give me error "redirect_uris" of undefined please guide me

Omar7867 avatar Sep 30 '21 23:09 Omar7867

Hi @Omar7867, could you please include a reproducible environment and code snippet? Thanks!

sofisl avatar Oct 01 '21 16:10 sofisl

With redirect_uris its working now, But I have to implement Oauth2 token api and reporting api on my nodejs server, without redirect url how can I do that. Can you please give me any example with jwt token and how to signed that token.

Omar7867 avatar Oct 01 '21 18:10 Omar7867

Some APIs may require 3-legged OAuth to work. Without knowing which API you are trying to use and a snippet of what you're trying to do, it's difficult for us to try to assist you.

chingor13 avatar Oct 04 '21 17:10 chingor13