2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Laravel Passport】APIで”Replicating claims as headers is deprecated and will removed from v4.0.”が発生した場合

2
Posted at

要件だけ早急に。

Laravel Passportを使用し、APIの認証や実行時に、稀に以下のエラーが発生するようです。

Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated. 

こちらは、関連ライブラリ”lcobucci/jwt”が、11/25にてv3.4.0へのアップデートが行われ、そのライブラリで不具合が発生している模様です。
https://github.com/lcobucci/jwt/issues/550

早い段階でマイナーバージョンアップが入るとは思いますが、万が一このエラーが発生する場合、以下のコマンドを実行し、ダウングレードを行ってください。

composer require lcobucci/jwt=3.3.*

公開しているサービスで問い合わせを受け、急いで調査。APIは割と影響度高いので。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?