You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any context that might help us understand?
I'm not sure if this concept should have been really clear or not and maybe im still doing it wrong but it took me a number of hours to realize that when splitting the configuration piece that almost everything can be placed in the Auth.Config.ts file and only the "adapter" property appears to be required in the Auth.ts file.
What is the improvement or update you wish to see?
Is it possible to add a few more pieces to the Auth.Config.ts area of this page so we can potentially get a more complete middleware example.
import GitHub from "next-auth/providers/github"
import type { NextAuthConfig } from "next-auth"
export default {
providers: [GitHub],
pages: {signIn: "/signin"},
session: {strategy: "jwt"},
callbacks: {
authorized: async ({ request, auth }) =>
{
return !!auth;
},
},
} satisfies NextAuthConfig
Is there any context that might help us understand?
I'm not sure if this concept should have been really clear or not and maybe im still doing it wrong but it took me a number of hours to realize that when splitting the configuration piece that almost everything can be placed in the Auth.Config.ts file and only the "adapter" property appears to be required in the Auth.ts file.
It wasnt until I found this NextJS article that I realized I had properties in the wrong file.
https://nextjs.org/learn/dashboard-app/adding-authentication#protecting-your-routes-with-nextjs-middleware
Does the docs page already exist? Please link to it.
https://authjs.dev/guides/edge-compatibility
The text was updated successfully, but these errors were encountered: