Skip to content

Commit 509e9d3

Browse files
committed
fix(router): establish claims before user on logout
1 parent c1a661a commit 509e9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func Load(options ...gin.HandlerFunc) *gin.Engine {
6969
r.GET("/login", auth.Login)
7070

7171
// Logout endpoint
72-
r.GET("/logout", user.Establish(), auth.Logout)
72+
r.GET("/logout", claims.Establish(), user.Establish(), auth.Logout)
7373

7474
// Refresh Access Token endpoint
7575
r.GET("/token-refresh", auth.RefreshAccessToken)

0 commit comments

Comments
 (0)