mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Support auto-login.
This commit is contained in:
@ -58,7 +58,7 @@ func generateJwtToken(application *Application, user *User) (string, error) {
|
||||
return token, err
|
||||
}
|
||||
|
||||
func parseJwtToken(token string) (*Claims, error) {
|
||||
func ParseJwtToken(token string) (*Claims, error) {
|
||||
tokenClaims, err := jwt.ParseWithClaims(token, &Claims{}, func(token *jwt.Token) (interface{}, error) {
|
||||
return jwtSecret, nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user