tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.3k stars 1.54k forks source link

Using jwt-auth to make multiple middleware #1253

Open Crysalist opened 7 years ago

Crysalist commented 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?

Can you maybe send me an example?

millerleo commented 7 years ago

Just like this config(['jwt.secret' => '******']);