feat: add long-lived api tokens (#1085)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/1085 Co-authored-by: konrad <k@knt.li> Co-committed-by: konrad <k@knt.li>
This commit is contained in:
parent
2598550e49
commit
1322cb16d7
11 changed files with 51 additions and 8 deletions
|
|
@ -44,6 +44,8 @@ type Login struct {
|
|||
Password string `json:"password"`
|
||||
// The totp passcode of a user. Only needs to be provided when enabled.
|
||||
TOTPPasscode string `json:"totp_passcode"`
|
||||
// If true, the token returned will be valid a lot longer than default. Useful for "remember me" style logins.
|
||||
LongToken bool `json:"long_token"`
|
||||
}
|
||||
|
||||
type Status int
|
||||
|
|
|
|||
Reference in a new issue