We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00565c8 commit 1761f41Copy full SHA for 1761f41
server/utils/cookie.go
@@ -24,7 +24,10 @@ func SetCookie(gc *gin.Context, token string) {
24
func GetCookie(gc *gin.Context) (string, error) {
25
cookie, err := gc.Request.Cookie(constants.COOKIE_NAME)
26
if err != nil {
27
- return "", err
+ cookie, err = gc.Request.Cookie(constants.COOKIE_NAME + "-client")
28
+ if err != nil {
29
+ return "", err
30
+ }
31
}
32
33
return cookie.Value, nil
0 commit comments