|
@@ -26,13 +26,13 @@ Route.group(() => {
|
|
|
Route.post('register', 'AuthController.register')
|
|
Route.post('register', 'AuthController.register')
|
|
|
Route.post('admin/login', 'AuthController.loginAdmin')
|
|
Route.post('admin/login', 'AuthController.loginAdmin')
|
|
|
Route.get('/google/redirect', async ({ ally }) => {
|
|
Route.get('/google/redirect', async ({ ally }) => {
|
|
|
- return ally.use('google').redirect()
|
|
|
|
|
|
|
+ return ally.use('google').stateless().redirect()
|
|
|
})
|
|
})
|
|
|
Route.get('/facebook/redirect', async ({ ally }) => {
|
|
Route.get('/facebook/redirect', async ({ ally }) => {
|
|
|
return ally.use('facebook').redirect()
|
|
return ally.use('facebook').redirect()
|
|
|
})
|
|
})
|
|
|
Route.get('/google/callback', async ({ ally }) => {
|
|
Route.get('/google/callback', async ({ ally }) => {
|
|
|
- const google = ally.use('google')
|
|
|
|
|
|
|
+ const google = ally.use('google').stateless()
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* User has explicitly denied the login request
|
|
* User has explicitly denied the login request
|