Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuth ¶
func CheckAuth() gin.HandlerFunc
Check if request is authenticated or not This method first will check if request is from web or the request has Authentication Cookie available then it will validate Authentication cookie token Otherwise it will look for Authorization header and validate that header. Else return invalid json response
func GetAuthTokenFromCookie ¶
Get auth token string from cookie
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.