kira-0521 / todo-app-ai

https://todo-app-ai-bay.vercel.app
1 stars 0 forks source link

auth middleware #40

Closed kira-0521 closed 6 months ago

kira-0521 commented 6 months ago

https://next-auth.js.org/configuration/nextjs#advanced-usage

kira-0521 commented 6 months ago

現状以下の記述のみだと、ログイン後にログイン画面に止まってしまう

export { default } from "next-auth/middleware";
kira-0521 commented 6 months ago
kira-0521 commented 6 months ago

trpcのmiddlewareで処理される

image

middlewareの場所間違ってた

kira-0521 commented 6 months ago

auth warning

https://manage.auth0.com/dashboard/jp/todo-app-ai/logs/90020240321135839826969000000000000001223372038235117204?page=1

You are using Auth0 development keys which are only intended for use in development and testing. This connection (google-oauth2) should be configured with your own Development Keys to enable the consent page to show your logo instead of Auth0's. AUTH0 DEVELOPMENT KEYS SHOULD NOT BE USED ON PRODUCTION ENVIRONMENTS. To learn more about Development Keys please refer to https://auth0.com/docs/connections/social/devkeys

kira-0521 commented 6 months ago

t3 stack with nextjs middleware

https://create.t3.gg/en/usage/next-auth#usage-with-nextjs-middleware