package
0.0.0-20210217154330-1a7f21c91fa9
Repository: https://github.com/devsdk/dfd.git
Documentation: pkg.go.dev

# Functions

CreateAccessToken returns jwt access token with Claims.
CreateDiscordOauthURI returns discord oauth2 url.
CreateRefreshToken returns jwt refresh token with Claims.
No description provided by the author
Login is handler for endpoint GET /auth/login @Summary Login @Description Redirect to discord Oauth2 login page @Accept json @Produce json @tags auth/ @Router /auth/login [get].
Logout is handler for endpoint GET /auth/logout @Summary Logout @Description Delete access token and refresh token from cookie.
Redirect is handler for endpoint GET /auth/redirect.
Refresh is handler for endpoint GET /auth/refresh @Summary Refresh token @Description Refresh access token token.
Token is handler for endpoint GET /auth/token @Summary Get access token and refresh @Description Return access and refresh token from cookie if it is valid.