added a proper response to logout-function
This commit is contained in:
@@ -35,10 +35,10 @@ export default class AuthController {
|
||||
}
|
||||
}
|
||||
|
||||
public async logout({auth}: HttpContextContract) {
|
||||
public async logout({auth, response}: HttpContextContract) {
|
||||
try {
|
||||
await auth.use('api').revoke()
|
||||
return
|
||||
return response.ok(true)
|
||||
}
|
||||
catch(error) {
|
||||
Logger.error(error.message)
|
||||
|
||||
Reference in New Issue
Block a user