Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type LoginRequestParams ¶
type LoginRequestParams struct { RequestedUrl string `json:"requested_url,omitempty"` Credentials }
type PublicKeysResponse ¶
type RSAKeyIdentifier ¶
type RSAKeyIdentifier struct {
KID string `json:"kid"`
}
type RSAKeyPair ¶
type RSAKeyPair struct { Public *rsa.PublicKey Private *rsa.PrivateKey }
type RefreshTokenClaims ¶
type RefreshTokenClaims struct { Token string `json:"token"` RSAKeyIdentifier jwt.StandardClaims }
type RegisterRequestParams ¶
type TokenDelete ¶
type TokenDelete struct {
TokenId string `json:"token_id"`
}
type User ¶
func DowngradeToUser ¶
func DowngradeToUser(userWithCredentials UserWithCredentials) User
Should perhaps be moved to a helpers package?
type UserResponse ¶
type UserTokenClaims ¶
type UserTokenClaims struct { UserId string `json:"user_id"` Name string `json:"name"` Email string `json:"email"` RSAKeyIdentifier jwt.StandardClaims }
type UserWithCredentials ¶
Click to show internal directories.
Click to hide internal directories.