Logout now requires Authorization: Bearer <access-token>.
This commit is contained in:
@@ -275,6 +275,13 @@ curl -X POST http://localhost:8000/api/auth/refresh \\
|
||||
|
||||
Refresh-token reuse or a mismatched device ID returns `401` and revokes the token family. Signing out revokes the token family, while changing the password or completing a password reset revokes all sessions for the user.
|
||||
|
||||
Sign out with the access token in the bearer header:
|
||||
|
||||
```sh
|
||||
curl -X POST http://localhost:8000/api/auth/logout \\
|
||||
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
|
||||
```
|
||||
|
||||
Submit a link using the returned access token:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user