bitfumes / laravel-multiauth

Multi Auth and admin auth in Laravel Project
MIT License
470 stars 105 forks source link

Error in ever authenticated request made from super admin #136

Closed 9jadev closed 3 years ago

9jadev commented 3 years ago

Describe the bug whenever I make any authenticated request from super admin, it doesn't always go successfully I encounter an error, also when a resource controller is guarded with the role of super. the version of my app hosted locally work well but once I push to heroku the errors start.

"message": "Argument 3 passed to Lcobucci\\JWT\\Signer\\Hmac::doVerify() must be an instance of Lcobucci\\JWT\\Signer\\Key, null given, called in /app/vendor/lcobucci/jwt/src/Signer/BaseSigner.php on line 44",

Laravel Version Laravel 8.0

To Reproduce Steps to reproduce the behavior:

  1. setup a laravel 8 app
  2. install composer require bitfumes/laravel-multiauth:dev-jwtauth-permission
  3. set the same app up on heroku
  4. See error while trying to use it from heroku

Expected behavior whenever I access a route from heroku that required authentication it should go successful without any errors

9jadev commented 3 years ago

Please help me