Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITokenService ¶
type ITokenService interface {
MintToken(ctx context.Context, request *MintTokenRequest) (*MintTokenResponse, error)
}
type MintTokenRequest ¶
type MintTokenRequest struct { // Claims is a map of claims to be included in the token. // The standard claims of the token provider are added automatically. i.e. issuer, etc Claims fluffycore_contracts_claims.IClaims // DurationLifeTimeSeconds is the duration of the token in seconds. // the final expiration time is calculated as NotBeforeUnix + DurationLifeTimeSeconds DurationLifeTimeSeconds int // NotBeforeUnix is the unix time in seconds that the token is not valid before. NotBeforeUnix int64 }
type MintTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.