auth: {
isEnabled: true,
logLevel: 'debug',
baseURL: 'http://localhost:3000',
redirect: {
login: '/auth/login',
logout: '/auth/login',
home: '/'
},
provider: {
type: 'local',
pages: {
login: '/auth/login'
},
endpoints: {
signIn: { path: '/api/v1/login', method: 'post' },
signOut: { path: '/logout', method: 'post' },
signUp: false,
getSession: { path: '/api/v1/session', method: 'get' },
refresh: { path: '/api/v1/refresh-token', method: 'post' } // Use 'post' or 'get' depending on your backend
},
token: {
signInResponseTokenPointer: '/data/token',
type: 'Bearer',
cookieName: 'token',
headerName: 'Authorization',
maxAgeInSeconds: 60,
sameSiteAttribute: 'lax',
},
session: {
dataType: {
id: 'string',
first_name: 'string',
last_name: 'string',
email: 'string',
},
},
},
sessionRefresh: {
handler: './config/AuthRefreshHandler'
},
globalAppMiddleware: {
isEnabled: true,
addDefaultCallbackUrl: true
},
},
auth: {
isEnabled: true,
logLevel: 'debug',
baseURL: 'http://localhost:3000',
redirect: {
login: '/auth/login',
logout: '/auth/login',
home: '/'
},
provider: {
type: 'local',
pages: {
login: '/auth/login'
},
endpoints: {
signIn: { path: '/api/v1/login', method: 'post' },
signOut: { path: '/logout', method: 'post' },
signUp: false,
getSession: { path: '/api/v1/session', method: 'get' },
refresh: { path: '/api/v1/refresh-token', method: 'post' } // Use 'post' or 'get' depending on your backend
},
token: {
signInResponseTokenPointer: '/data/token',
type: 'Bearer',
cookieName: 'token',
headerName: 'Authorization',
maxAgeInSeconds: 60,
sameSiteAttribute: 'lax',
},
session: {
dataType: {
id: 'string',
first_name: 'string',
last_name: 'string',
email: 'string',
},
},
},
sessionRefresh: {
handler: './config/AuthRefreshHandler'
},
globalAppMiddleware: {
isEnabled: true,
addDefaultCallbackUrl: true
},
},