1
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 1 year has passed since last update.

Next.js JWT Tokenの保存方法

Posted at

認証のセキュリティについて

localstrage,cookie,インメモリ、Auth0がある。
それぞれメリットデメリットがある。
localstrageは比較的実装が簡単だが、容易に盗むことができる。

個人アプリ開発で実施したこと

NextAuthを実装するか検討したが、実装に時間がかかりそうだったので、localStrageに保存することにした。

jwt認証

1
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
1
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?