Skip to content

Commit

Permalink
bug fix: auth loophole
Browse files Browse the repository at this point in the history
  • Loading branch information
sneha-afk committed Mar 12, 2024
1 parent 16fa142 commit 4f45eda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions authentication/auth_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func LogoutHandler(c *gin.Context) {

// Remove from session
session := sessions.Default(c)
session.Set("access_token", nil)
session.Set("profile", nil)
session.Set("user_id", nil)
if err := session.Save(); err != nil {
Expand Down

0 comments on commit 4f45eda

Please sign in to comment.