feat(WEB-128): desktop and mobile initial wireframe implemented
This commit is contained in:
11
auth.ts
11
auth.ts
@@ -54,6 +54,7 @@ export const config = {
|
||||
return true
|
||||
},
|
||||
async session(...args) {
|
||||
console.log("****** SESSION *******")
|
||||
console.log(args)
|
||||
return args[0].session
|
||||
},
|
||||
@@ -70,14 +71,14 @@ export const config = {
|
||||
}
|
||||
return baseUrl
|
||||
},
|
||||
authorized({ auth, request }) {
|
||||
async authorized({ auth, request }) {
|
||||
console.log("****** AUTHORIZED *******")
|
||||
console.log({ request, auth })
|
||||
// const { pathname } = request.nextUrl
|
||||
// if (pathname === "/middleware-example") return !!auth
|
||||
return true
|
||||
},
|
||||
jwt({ session, token, trigger }) {
|
||||
async jwt({ session, token, trigger }) {
|
||||
console.log("****** JWT *******")
|
||||
// if (trigger === "update") token.name = session.user.name
|
||||
console.log({ token, trigger, session })
|
||||
@@ -86,10 +87,12 @@ export const config = {
|
||||
},
|
||||
events: {
|
||||
async signIn(...args) {
|
||||
console.log({ args })
|
||||
console.log("#### SIGNIN EVENT ARGS ######")
|
||||
console.log(args)
|
||||
},
|
||||
async session(...args) {
|
||||
console.log({ args })
|
||||
console.log("#### SESSION EVENT ARGS ######")
|
||||
console.log(args)
|
||||
},
|
||||
},
|
||||
logger: {
|
||||
|
||||
Reference in New Issue
Block a user