feat(WEB-128): desktop and mobile initial wireframe implemented

This commit is contained in:
Simon Emanuelsson
2024-03-18 17:24:17 +01:00
parent fd6c49ac7c
commit b173c2fb11
44 changed files with 957 additions and 19 deletions

11
auth.ts
View File

@@ -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: {