Open Crysalist opened 7 years ago
I am trying to create middleware that utilizes this library but using a different secret key to validate 3rd party tokens.
How would I use : setSecret('OIfidSLnzXKqAGFZbScVP34UKeoCW0cT') to authenticate/validate new request in middleware?
setSecret('OIfidSLnzXKqAGFZbScVP34UKeoCW0cT')
Can you maybe send me an example?
Just like this config(['jwt.secret' => '******']);
config(['jwt.secret' => '******']);
I am trying to create middleware that utilizes this library but using a different secret key to validate 3rd party tokens.
How would I use :
setSecret('OIfidSLnzXKqAGFZbScVP34UKeoCW0cT')
to authenticate/validate new request in middleware?Can you maybe send me an example?