Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jwt tokenが無効な値な場合は、ログアウトさせてログイン画面へリダイレクトさせる #84

Closed
moriyadetteiu opened this issue Nov 19, 2020 · 2 comments · Fixed by #100

Comments

@moriyadetteiu
Copy link
Owner

moriyadetteiu commented Nov 19, 2020

概要 / 問題点

無効なjwt tokenが格納されている場合はログアウトさせ、ログイン画面へリダイレクトさせたい

現状

無効なjwt tokenでもログイン中の扱いになる

再現方法

  1. ログインする
  2. cromeの開発者ツールからtokenを書き換える
  3. 無効なtokenでもログイン中の画面にアクセスでき、エラーになる

備考

middlewareでやるか、apolloのエラーハンドリング部分で実装する感じ?

nuxt-modules/apollo#315 (comment)

@moriyadetteiu
Copy link
Owner Author

#78 と一緒に考える

@moriyadetteiu
Copy link
Owner Author

https://qiita.com/ragnar1904/items/3334e500c9700cd7bc5f
ここら辺使いたい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant