mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-02 12:21:53 +08:00
Update cookie.md to reflect correct status code on login (#1349)
* Update cookie.md to reflect correct status code on login * Add complete HTTP response code * Update HTTP response code in docs for cookie transport
This commit is contained in:
@ -24,7 +24,7 @@ As you can see, instantiation is quite simple. It accepts the following argument
|
||||
|
||||
This method will return a response with a valid `set-cookie` header upon successful login:
|
||||
|
||||
!!! success "`200 OK`"
|
||||
!!! success "`204 No content`"
|
||||
|
||||
> Check documentation about [login route](../../../usage/routes.md#post-login).
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ Logout the authenticated user against the method named `name`. Check the corresp
|
||||
!!! fail "`401 Unauthorized`"
|
||||
Missing token or inactive user.
|
||||
|
||||
!!! success "`200 OK`"
|
||||
!!! success "`204 No content`"
|
||||
The logout process was successful.
|
||||
|
||||
## Register router
|
||||
|
||||
Reference in New Issue
Block a user