Skip to content

Commit 8b40ea3

Browse files
authored
fix(auth): authorization_details type in TokenResponse (v4) (#1177)
2 parents 068222c + f4ffad2 commit 8b40ea3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/auth/backchannel.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ type AuthorizeRequest = Omit<AuthorizeOptions, 'userId'> &
115115
login_hint: string;
116116
};
117117

118+
export interface AuthorizationDetails {
119+
readonly type: string;
120+
readonly [parameter: string]: unknown;
121+
}
122+
118123
/**
119124
* The response from the token endpoint.
120125
*/
@@ -147,7 +152,7 @@ export type TokenResponse = {
147152
* Optional authorization details when using Rich Authorization Requests (RAR).
148153
* @see https://auth0.com/docs/get-started/apis/configure-rich-authorization-requests
149154
*/
150-
authorization_details?: string;
155+
authorization_details?: AuthorizationDetails[];
151156
};
152157

153158
/**

0 commit comments

Comments
 (0)