dsuvs66406 2019-03-23 17:35
浏览 53

我使用Laravel Passport进行身份验证,那么如何在从api收到持有者令牌后在我的应用程序中应用身份验证

So this is a samle of the code that my api returns

  ▼
  +"status": true
  +"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImI0MjgxMjZhODJiMzFkMmZhYTg2NjdmZjBkZDFjY2FmNmQwMzJlMmViYzhiMWEwYmM3MTg5N2RlZTk3MjIzMzU0YjNjZGMwMWI5YjYzZjk2In0.eyJh ▶"
  +"token_type": "Bearer"
  +"expires_at": "2020-03-23 17:23:15"
}

My question is:how do I use apply this in my app ? Do I set a session and store the token or is there a "laravel way" of implemting it ?

  • 写回答

0条回答 默认 最新

    报告相同问题?