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

token must have 2 dots but token have 2 dots #1910

Open
lucasres opened this issue Dec 16, 2019 · 2 comments
Open

token must have 2 dots but token have 2 dots #1910

lucasres opened this issue Dec 16, 2019 · 2 comments
Labels

Comments

@lucasres
Copy link

lucasres commented Dec 16, 2019

Subject of the issue

Describe your issue here.

Your environment

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 6.0
Package version 1.0.*
PHP version 7.3

Steps to reproduce

$r = new \Tymon\JWTAuth\Token('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'); //exemple token
\JWTAuth::manager()->getJWTProvider()->decode($r);

message error:
Tymon/JWTAuth/Exceptions/TokenInvalidException with message 'Could not decode token: The JWT string must have two dots'

But my token have 2 dots

@sergiy-petrov
Copy link

@mandala21 try ->decode($r->get()); instead of ->decode($r);

@stale
Copy link

stale bot commented Dec 25, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants