mirror of
https://github.com/ArthurDanjou/artdanj-shortener.git
synced 2026-01-25 17:52:34 +01:00
Update dependencies and working with auth
This commit is contained in:
@@ -20,7 +20,7 @@ export default class UsersController {
|
||||
}
|
||||
|
||||
public async logout ({auth}: HttpContextContract) {
|
||||
await auth.use('api').logout()
|
||||
await auth.use('api').revoke()
|
||||
return { message: 'Vous avez été déconnecté' }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user