Skip to content

Commit

Permalink
Remove custom claims from JWT interface. Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerodonnell committed May 20, 2019
1 parent 5f72acf commit a163b24
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ declare module '@articulate/authentic' {
}

interface JWKSOpts {
cache?: boolean,
cache?: boolean
rateLimit?: boolean
}

interface AuthenticOpts {
issWhitelist: string[],
jwks?: JWKSOpts,
issWhitelist: string[]
jwks?: JWKSOpts
verify?: VerifyOpts
}

Expand All @@ -32,19 +32,16 @@ declare module '@articulate/authentic' {
namespace Authentic {
interface JWT {
// Standard JWT claims
aud: string,
cid?: number,
exp: number,
iat: number,
aud: string
cid?: number
exp: number
iat: number
iss: string
jti?: number,
jti?: number
scp?: Array<String>
sub: string
uid?: number,

// Custom JWT claims
aid?: string,
staff?: boolean,
uid?: number
[key: string]: any
}
}

Expand Down

0 comments on commit a163b24

Please sign in to comment.