feat: Destroy session + introduce http config (#7336)
This commit is contained in:
@@ -30,4 +30,12 @@ export class Auth {
|
||||
this.client.setToken(token)
|
||||
}
|
||||
}
|
||||
|
||||
logout = async () => {
|
||||
await this.client.fetch("/auth/session", {
|
||||
method: "DELETE",
|
||||
})
|
||||
|
||||
this.client.clearToken()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user