mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-01 10:00:19 +08:00
fix: use user.UpdatedTime as scim.Meta.Version instead of user.Id (#2406)
* 111 * fix: use user.UpdatedTime as scim.Meta.Version instead of user.Id --------- Co-authored-by: hsluoyz <hsluoyz@qq.com>
This commit is contained in:
@ -54,6 +54,10 @@ func String2Time(timestamp string) time.Time {
|
||||
return parseTime
|
||||
}
|
||||
|
||||
func Time2String(timestamp time.Time) string {
|
||||
return timestamp.Format(time.RFC3339)
|
||||
}
|
||||
|
||||
func IsTokenExpired(createdTime string, expiresIn int) bool {
|
||||
createdTimeObj, _ := time.Parse(time.RFC3339, createdTime)
|
||||
expiresAtObj := createdTimeObj.Add(time.Duration(expiresIn) * time.Second)
|
||||
|
Reference in New Issue
Block a user