empitsu / quiz_app

0 stars 0 forks source link

認証(Firebase-auth) #6

Closed empitsu closed 3 years ago

empitsu commented 3 years ago

Next.js × Firebase Authentication × Vercel で認証アプリをお手軽に作ってデプロイする https://blog.kimizuy.dev/posts/next-firebase-auth

Next.js × TypeScript × Firebase AuthenticationでGoogle認証を実装する https://qiita.com/y-shida1997/items/f5e52c7288813a8184ff

カスタム認証にしてるっぽい? https://github.com/gladly-team/next-firebase-auth/tree/main/example

Firebaseの存在をフロントエンドから隠蔽するために https://blog.ojisan.io/fb-nukeru

empitsu commented 3 years ago

static

Authenticating Statically Generated Pages https://nextjs.org/docs/authentication

useEffectでuseSWRでuser情報取得 https://github.com/vvo/next-iron-session/blob/master/examples/next.js/lib/useUser.js

empitsu commented 3 years ago

When using Firebase Authentication, we recommend using the static generation pattern.

https://nextjs.org/docs/authentication#firebase

empitsu commented 3 years ago

static

getQuizz

SSR

-> quizだけこれをやる?

DBアクセスの実装を隠蔽したいならpostの実装もapi routes経由でやったほうがいいのでは?