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

getServerSessionでセッションが取得できなかった場合の挙動について #196

Open
Yumax-panda opened this issue Apr 14, 2024 · 0 comments

Comments

@Yumax-panda
Copy link
Owner

getServerSessionでセッションが取得できなかった場合,

  • notFound() を使う
  • redirect()を使う
  • nullを許容してreturn

現状, nullがreturnされた場合の処理が共通しているので, getSessionにまとめても良いかも。

一つのメソッドですることが多くなったり, 関数名以外のことをするのが問題

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

No branches or pull requests

1 participant