userpage: store refresh token separately
stored as "user-refresh" fixes weird issues when two accounts are logged in.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ func (app *appContext) SetMyContactMethods(gc *gin.Context) {
|
||||
// @Security Bearer
|
||||
// @tags User Page
|
||||
func (app *appContext) LogoutUser(gc *gin.Context) {
|
||||
cookie, err := gc.Cookie("refresh")
|
||||
cookie, err := gc.Cookie("user-refresh")
|
||||
if err != nil {
|
||||
app.debug.Printf("Couldn't get cookies: %s", err)
|
||||
respond(500, "Couldn't fetch cookies", gc)
|
||||
|
||||
Reference in New Issue
Block a user