designmynight / laravel-mongodb-passport

A package to get Laravel Passport working with MongoDB
MIT License
67 stars 75 forks source link

fix: don't cast scopes as an array #16

Closed willtj closed 5 years ago

willtj commented 5 years ago

Because it's already an array when it comes back from MongoDB - accessing $token->scopes without this change throws an error because it's trying to cast from a MySQL json-encoded array

json_decode() expects parameter 1 to be string, array given