Skip to content

Commit

Permalink
fix: updates 'refresh_token' and 'refresh_expires_in' to be optional …
Browse files Browse the repository at this point in the history
…properties on the ITokenResponse

> refresh_token
>         OPTIONAL.  The refresh token, which can be used to obtain new
>         access tokens using the same authorization grant as described
>         in Section 6.

https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
  • Loading branch information
jbottigliero committed Apr 5, 2024
1 parent 12d14f0 commit 07402e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ITokenResponse.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default interface ITokenResponse {
access_token: string;
expires_in: number;
refresh_expires_in: number;
refresh_token: string;
refresh_expires_in?: number;
refresh_token?: string;
scope: string;
token_type: string;
}

0 comments on commit 07402e4

Please # to comment.