mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 11:51:17 +00:00
Adding claims description.
This commit is contained in:
parent
b6f2d5df89
commit
5c9bf3ae15
1 changed files with 13 additions and 1 deletions
|
@ -102,7 +102,19 @@ channels:
|
|||
$ref: "#/components/messages/loginRequest"
|
||||
subscribe:
|
||||
summary: Login (response)
|
||||
description: Returns an authentication string (`jwt`) for the supplied username or emal
|
||||
description: |-
|
||||
Returns an authentication string (`jwt`) for the supplied username or email.
|
||||
The JWT claim is in the following format:
|
||||
|
||||
```
|
||||
Claims {
|
||||
// local_user_id, standard claim by RFC 7519.
|
||||
sub: i32,
|
||||
iss: String,
|
||||
// Time when this token was issued as UNIX-timestamp in seconds
|
||||
iat: i64,
|
||||
}
|
||||
```
|
||||
operationId: loginResponseMessage
|
||||
tags:
|
||||
- name: User, authentication and admin
|
||||
|
|
Loading…
Reference in a new issue