feat: add token example
This commit is contained in:
parent
4f7d69a108
commit
441722372a
@ -38,7 +38,7 @@ const (
|
|||||||
|
|
||||||
// Token represents an authentification token
|
// Token represents an authentification token
|
||||||
type Token struct {
|
type Token struct {
|
||||||
Token string `json:"token"`
|
Token string `json:"token" example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewUserAuthTokenResponse creates a new user auth token response from a user object.
|
// NewUserAuthTokenResponse creates a new user auth token response from a user object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user