Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthDB = "authDB" CollectionRefreshTokens = "refreshToken" UserDB = "userDB" CollectionUsers = "users" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthDatabase ¶
func (AuthDatabase) DeleteRefreshTokenByID ¶
func (db AuthDatabase) DeleteRefreshTokenByID(ctx context.Context, id string) error
func (AuthDatabase) FindRefreshTokenByID ¶
func (db AuthDatabase) FindRefreshTokenByID(ctx context.Context, id string) (RefreshToken, error)
func (AuthDatabase) InsertRefreshToken ¶
func (db AuthDatabase) InsertRefreshToken(ctx context.Context, rt RefreshToken) (string, error)
type RefreshToken ¶
Click to show internal directories.
Click to hide internal directories.