Documentation ¶
Index ¶
- func CheckAndRefreshTokens(oldAuthTokenString string, oldRefreshTokenString string, oldCsrfSecret string) (newAuthTokenString, newRefreshTokenString, newCsrfSecret string, err error)
- func CreateNewTokens(uuid string, role string) (authTokenString, refreshTokenString, csrfSecret string, err error)
- func GrabUUID(authTokenString string) (string, error)
- func InitJWT() error
- func RevokeRefreshToken(refreshTokenString string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndRefreshTokens ¶
func CheckAndRefreshTokens(oldAuthTokenString string, oldRefreshTokenString string, oldCsrfSecret string) (newAuthTokenString, newRefreshTokenString, newCsrfSecret string, err error)
@adam-hanna: check if refreshToken["sub"] == authToken["sub"]? I don't think this is necessary bc a valid refresh token will always generate a valid auth token of the same "sub"
func CreateNewTokens ¶
func RevokeRefreshToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.