mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-10 08:17:27 +02:00
updated jsvm types
This commit is contained in:
1 parent
70d8d1ee9d
commit
cea149cb6e
2 files changed
+4673
-4673
No files matched your search
@@ -46,7 +46,7 @@ func ParseJWT(token string, verificationKey string) (jwt.MapClaims, error) {
|
||||
func NewJWT(payload jwt.MapClaims, signingKey string, duration time.Duration) (string, error) {
|
||||
claims := jwt.MapClaims{
|
||||
// @todo consider with the refactoring to either remove the
|
||||
// duration argument or make it always take precedent?
|
||||
// duration argument or make it always take precedence?
|
||||
"exp": time.Now().Add(duration).Unix(),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user