Skip to content

Commit

Permalink
Merge pull request #55 from origadmin/dev
Browse files Browse the repository at this point in the history
feat(authn): add refresh token creation methods
  • Loading branch information
godcong authored Dec 16, 2024
2 parents 6983f83 + c3cf204 commit 8cf9416
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions security/authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type Authenticator interface {
CreateToken(context.Context, Claims) (string, error)
// CreateTokenContext inject user claims into context.
CreateTokenContext(context.Context, TokenType, Claims) (context.Context, error)
// CreateRefreshToken inject user claims into refresh token string.
CreateRefreshToken(context.Context, Claims) (string, error)
// CreateRefreshTokenContext inject user claims into context.
CreateRefreshTokenContext(context.Context, TokenType, Claims) (context.Context, error)
// DestroyToken invalidate a token by removing it from the token store.
DestroyToken(context.Context, string) error
// DestroyTokenContext invalidate a token by removing it from the token store.
Expand Down

0 comments on commit 8cf9416

Please sign in to comment.