Comparing version 0.1.17 to 0.1.18
@@ -12,7 +12,7 @@ import { JWTVerifyGetKey } from 'jose'; | ||
iat: number; | ||
at_hash?: string | undefined; | ||
name?: string | undefined; | ||
username?: string | undefined; | ||
avatar?: string | undefined; | ||
role_names?: string[] | undefined; | ||
at_hash?: string | null | undefined; | ||
name?: string | null | undefined; | ||
username?: string | null | undefined; | ||
avatar?: string | null | undefined; | ||
role_names?: string[] | null | undefined; | ||
}, { | ||
@@ -24,7 +24,7 @@ iss: s.Struct<string, null>; | ||
iat: s.Struct<number, null>; | ||
at_hash: s.Struct<string | undefined, null>; | ||
name: s.Struct<string | undefined, null>; | ||
username: s.Struct<string | undefined, null>; | ||
avatar: s.Struct<string | undefined, null>; | ||
role_names: s.Struct<string[] | undefined, s.Struct<string, null>>; | ||
at_hash: s.Struct<string | null | undefined, null>; | ||
name: s.Struct<string | null | undefined, null>; | ||
username: s.Struct<string | null | undefined, null>; | ||
avatar: s.Struct<string | null | undefined, null>; | ||
role_names: s.Struct<string[] | null | undefined, s.Struct<string, null>>; | ||
}>; | ||
@@ -31,0 +31,0 @@ export declare type IdTokenClaims = s.Infer<typeof IdTokenClaimsSchema>; |
@@ -37,7 +37,7 @@ "use strict"; | ||
iat: s.number(), | ||
at_hash: s.optional(s.string()), | ||
name: s.optional(s.string()), | ||
username: s.optional(s.string()), | ||
avatar: s.optional(s.string()), | ||
role_names: s.optional(s.array(s.string())), | ||
at_hash: s.nullable(s.optional(s.string())), | ||
name: s.nullable(s.optional(s.string())), | ||
username: s.nullable(s.optional(s.string())), | ||
avatar: s.nullable(s.optional(s.string())), | ||
role_names: s.nullable(s.optional(s.array(s.string()))), | ||
}); | ||
@@ -44,0 +44,0 @@ const verifyIdToken = async (idToken, clientId, issuer, jwks) => { |
{ | ||
"name": "@logto/js", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"main": "./lib/index.js", | ||
@@ -60,3 +60,3 @@ "exports": "./lib/index.js", | ||
}, | ||
"gitHead": "57e93385829eceb3c1b2ffb92b90901aa174a59a" | ||
"gitHead": "adf02e1985235ed71efc60f53281e9ab32c0f26a" | ||
} |
29157