Skip to content

Commit f4ffad2

Browse files
committed
fix(auth): authorization_details type in TokenResponse (v4)
1 parent 4c24b3f commit f4ffad2

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
@@ -110,6 +110,11 @@ type AuthorizeRequest = Omit<AuthorizeOptions, 'userId'> &
110110
login_hint: string;
111111
};
112112

113+
export interface AuthorizationDetails {
114+
readonly type: string;
115+
readonly [parameter: string]: unknown;
116+
}
117+
113118
/**
114119
* The response from the token endpoint.
115120
*/
@@ -142,7 +147,7 @@ export type TokenResponse = {
142147
* Optional authorization details when using Rich Authorization Requests (RAR).
143148
* @see https://auth0.com/docs/get-started/apis/configure-rich-authorization-requests
144149
*/
145-
authorization_details?: string;
150+
authorization_details?: AuthorizationDetails[];
146151
};
147152

148153
/**

0 commit comments

Comments
 (0)