Update dependencies and working with auth

This commit is contained in:
2021-06-10 18:47:58 +02:00
parent 0f3be215d7
commit 0602659c18
3 changed files with 252 additions and 245 deletions

View File

@@ -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é' }
}