passport-custom-jwt-claims icon indicating copy to clipboard operation
passport-custom-jwt-claims copied to clipboard

Added option for user_claims to be in a object & fixes

Open itbm opened this issue 6 years ago • 2 comments

I have added the option for user_claims to we wrapped in an object if they are not required at the token root level.

"user": {
    "name": "User Name",
    "email": "[email protected]"
  },

itbm avatar May 21 '18 07:05 itbm

Have added in fix for oauth permissions check due to failing build, this now matches PassportServiceProvider (see also #3)

itbm avatar May 21 '18 08:05 itbm

Changed url() to env('APP_URL'), as the default url() blocks dump-autoload:

In UrlGenerator.php line 102:

  Type error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in...

itbm avatar May 21 '18 09:05 itbm