Documentation ¶
Index ¶
- func CheckRefreshTokenValidity(r *http.Request) (string, error)
- func GenerateAccessToken(rollNo string) (string, error)
- func GenerateOtp(rollNo string) error
- func GenerateRefreshToken(rollNo string) (string, error)
- func GetRollNoFromRequest(r *http.Request) (string, error)
- func GetRollNoFromTokenCookie(cookie *http.Cookie) (string, error)
- func IsAuthorized(endpoint func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
- func Login(rollNo string, password string) (ok bool, err error)
- func ResetPassword(rollNo string, newPassword string, otp string) error
- func Signup(rollNo string, name string, password string, otp string) error
- func VerifyOTP(rollNo string, otp string) (err error)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAccessToken ¶
func GenerateOtp ¶
func GenerateRefreshToken ¶
func IsAuthorized ¶
func IsAuthorized(endpoint func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.