Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAuthedUser ¶
func WithAuthedUser(ctx context.Context, user *DelphisAuthedUser) context.Context
Types ¶
type DelphisAccessToken ¶
type DelphisAuth ¶
type DelphisAuth interface { NewAccessToken(userID string) (*DelphisAccessToken, error) NewRefreshToken(userID string) (*DelphisRefreshToken, error) ValidateAccessToken(ctx context.Context, token string) (*DelphisAuthedUser, error) ValidateRefreshToken(ctx context.Context, token string) (*DelphisRefreshTokenUser, error) }
func NewDelphisAuth ¶
func NewDelphisAuth(config *config.AuthConfig) DelphisAuth
type DelphisAuthedUser ¶
func GetAuthedUser ¶
func GetAuthedUser(ctx context.Context) *DelphisAuthedUser
type DelphisRefreshToken ¶
type DelphisRefreshTokenUser ¶
Click to show internal directories.
Click to hide internal directories.