Categorygithub.com/c0dev0yager/goauth
modulepackage
1.0.0
Repository: https://github.com/c0dev0yager/goauth.git
Documentation: pkg.go.dev

# README

Go Redis Auth Client

GoAuth is a redis client based token managment system which generate short live JWT token and AES encrypted Refresh Token

Current version 1.0.0 supports creating single token per auth id

Exposed Method:

CreateToken(
	ctx context.Context,
	dto TokenValue,
) (*TokenResponseDTO, error)
  
RefreshToken(
	ctx context.Context,
	refreshKey string,
	accessToken pkg.JWTToken,
) (*TokenResponseDTO, error)
  
Validate(
	ctx context.Context,
	accessToken pkg.JWTToken,
) (*TokenValue, error)
  
Invalidate(
	ctx context.Context,
	authID string,
) error

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author