mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-31 01:10:25 +01:00
updated jsvm types
This commit is contained in:
1 parent
70d8d1ee9d
commit
cea149cb6e
2 files changed
+4673
-4673
No files matched your search
+4672
-4672
File diff suppressed because it is too large.
Load diff
@@ -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) {
|
func NewJWT(payload jwt.MapClaims, signingKey string, duration time.Duration) (string, error) {
|
||||||
claims := jwt.MapClaims{
|
claims := jwt.MapClaims{
|
||||||
// @todo consider with the refactoring to either remove the
|
// @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(),
|
"exp": time.Now().Add(duration).Unix(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user