feat: invalidate token on logout (#6923 close #6792)

This commit is contained in:
itsHenry
2024-08-04 12:32:39 +08:00
committed by GitHub
parent a6bead90d7
commit 81258d3e8a
3 changed files with 33 additions and 0 deletions

View File

@ -54,6 +54,7 @@ func Init(e *gin.Engine) {
auth.POST("/me/update", handles.UpdateCurrent)
auth.POST("/auth/2fa/generate", handles.Generate2FA)
auth.POST("/auth/2fa/verify", handles.Verify2FA)
auth.GET("/auth/logout", handles.LogOut)
// auth
api.GET("/auth/sso", handles.SSOLoginRedirect)