Trying stateless

This commit is contained in:
2021-08-20 10:51:57 +02:00
parent 0c3640e507
commit 6f3ed077f6
3 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ export default class AuthController {
}
public async github ({ ally, auth, response }: HttpContextContract) {
const github = ally.use('github')
const github = ally.use('github').stateless()
if (github.accessDenied()) {
return response.status(403).send({

View File

@@ -78,6 +78,8 @@ const sessionConfig: SessionConfig = {
path: '/',
httpOnly: true,
sameSite: false,
domain: '.arthurdanjou.fr',
secure: true
},
/*

View File

@@ -16,7 +16,7 @@ Route.group(() => {
return ally.use('twitter').redirect()
})
Route.get('/github', async ({ ally }) => {
return ally.use('github').redirect()
return ally.use('github').stateless().redirect()
})
Route.get('/google', async ({ ally }) => {
return ally.use('google').redirect()