Open karmamaster opened 7 years ago
Can you explain a bit more? Have you looked at https://github.com/tymondesigns/jwt-auth/wiki/Creating-Tokens
Yes, I took a look in jwt-auth Wiki. My question means: I want to get the token currently available on server. But can you told me how can I get the content of token string like this website: jwt.io?
Yes, I took a look in jwt-auth Wiki. My question means: I want to get the token currently available on server.
jwt tokens are not stored anywhere. they are just validated against the payload and shared secret.
But can you told me how can I get the content of token string like this website: jwt.io?
Well, as I said, to get a token like you see in that website you use one of the methods provided by this package:
$token = JWTAuth::attempt($credentials)
// or
$token = JWTAuth::fromUser($user);
// or
$token = JWTAuth::encode($payload);
but again, I get the feeling you don't completely understand how JWT works and you didn't read the docs. JWT is stateless, it is not saved in the database automatically for you, you can if you want but thats not the point of it.
Hello, Can I get tokens which created by JWT-Auth? I have tried to look at google but no luck to me.
Thanks