Skip to content

Commit

Permalink
fix(types): add missing and optional scope to interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 4, 2024
1 parent 809dc0a commit 5dc6d17
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
14 changes: 7 additions & 7 deletions docs/interfaces/IntrospectionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
### Properties

- [active](IntrospectionResponse.md#active)
- [scope](IntrospectionResponse.md#scope)
- [aud](IntrospectionResponse.md#aud)
- [client\_id](IntrospectionResponse.md#client_id)
- [cnf](IntrospectionResponse.md#cnf)
Expand All @@ -20,6 +19,7 @@
- [iss](IntrospectionResponse.md#iss)
- [jti](IntrospectionResponse.md#jti)
- [nbf](IntrospectionResponse.md#nbf)
- [scope](IntrospectionResponse.md#scope)
- [sid](IntrospectionResponse.md#sid)
- [sub](IntrospectionResponse.md#sub)
- [token\_type](IntrospectionResponse.md#token_type)
Expand All @@ -33,12 +33,6 @@

___

### scope

`Readonly` **scope**: `string`

___

### aud

`Optional` `Readonly` **aud**: `string` \| `string`[]
Expand Down Expand Up @@ -87,6 +81,12 @@ ___

___

### scope

`Optional` `Readonly` **scope**: `string`

___

### sid

`Optional` `Readonly` **sid**: `string`
Expand Down
7 changes: 7 additions & 0 deletions docs/interfaces/JWTAccessTokenClaims.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- [sub](JWTAccessTokenClaims.md#sub)
- [cnf](JWTAccessTokenClaims.md#cnf)
- [nbf](JWTAccessTokenClaims.md#nbf)
- [scope](JWTAccessTokenClaims.md#scope)

## Properties

Expand Down Expand Up @@ -74,6 +75,12 @@ ___

`Optional` `Readonly` **nbf**: `number`

___

### scope

`Optional` `Readonly` **scope**: `string`

## Hierarchy

- `JWTPayload`
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3201,7 +3201,7 @@ export interface IntrospectionResponse {
readonly jti?: string
readonly username?: string
readonly aud?: string | string[]
readonly scope: string
readonly scope?: string
readonly sub?: string
readonly nbf?: number
readonly token_type?: string
Expand Down Expand Up @@ -4240,6 +4240,7 @@ export interface JWTAccessTokenClaims extends JWTPayload {
readonly iat: number
readonly jti: string
readonly client_id: string
readonly scope?: string

readonly [claim: string]: JsonValue | undefined
}
Expand Down

0 comments on commit 5dc6d17

Please sign in to comment.