Documentation
¶
Overview ¶
Copyright (c) 2021 AccelByte Inc. All Rights Reserved. This is licensed software from AccelByte Inc, for limitations and restrictions contact your company contract manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigRepository ¶
type RefreshTokenRepository ¶ added in v0.21.0
type RefreshTokenRepository interface {
DisableAutoRefresh() bool
GetExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) *int32
GetRefreshExpiresIn(accessToken iamclientmodels.OauthmodelTokenResponseV3) (*int32, error)
StoreRefreshToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) error
GetRefreshToken() (string, error)
GetRefreshRate() float64
GetSecondsTillExpiry(accessToken iamclientmodels.OauthmodelTokenResponseV3) time.Duration
HasToken(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
HasTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
HasRefreshTokenExpired(accessToken iamclientmodels.OauthmodelTokenResponseV3) bool
RemoveRefreshToken() error
}
type TokenRepository ¶
type TokenRepository interface {
Store(accessToken iamclientmodels.OauthmodelTokenResponseV3) error
GetToken() (*iamclientmodels.OauthmodelTokenResponseV3, error)
RemoveToken() error
}
Click to show internal directories.
Click to hide internal directories.