Mira Thakkar
Mira Thakkar

Reputation: 359

tymon/jwt-auth Laravel: Token Signature could not be verified

I am getting an access_token from third party successful login.Now i want to decode this token using tymon/jwt-auth and get the payload from that token. When i try to decode same token using JWT IO debugger, it successfully decodes the token and payload is as expected. But in laravel when i try to convert that using following code

$payload = JWTAuth::decode(new Tymon\JWTAuth\Token($token))

I am getting error something like this:

Token Signature could not be verified

Can anyone please help me with these? Thanks!

Upvotes: 1

Views: 2888

Answers (1)

Mayur Sojitra
Mayur Sojitra

Reputation: 712

Laravel 5.4 - Token Signature could not be verified

Try this: https://github.com/tymondesigns/jwt-auth/issues/1124

Upvotes: 1

Related Questions