Customising token response Laravel Passport

后端 未结 5 1484
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 11:34

I am working on an API at the moment and have hit a brick wall. I am using Passport with the \'Password\' grant type.

I want to return the user information with the

5条回答
  •  失恋的感觉
    2020-12-16 11:59

    To add custom claims to your Passport token, here is a gist using Passport 8 with Laravel 6

    https://gist.github.com/onamfc/0422da15743918e653888441ba6226ca

提交回复
热议问题