added a proper response to logout-function

This commit is contained in:
Sockenklaus
2021-11-14 11:19:14 +01:00
parent 8d09db5c15
commit 2fcdc59677

View File

@@ -35,10 +35,10 @@ export default class AuthController {
} }
} }
public async logout({auth}: HttpContextContract) { public async logout({auth, response}: HttpContextContract) {
try { try {
await auth.use('api').revoke() await auth.use('api').revoke()
return return response.ok(true)
} }
catch(error) { catch(error) {
Logger.error(error.message) Logger.error(error.message)