@@ -20,6 +20,39 @@ import {I18nBundle} from './i18n';
20
20
import { RecursivePartial } from './utility-types' ;
21
21
import { ThemeConfig , ThemeMode } from '../theme/types' ;
22
22
23
+ /**
24
+ * Interface representing the additional parameters to be sent in the sign-in request.
25
+ * This can include custom parameters that your authorization server supports.
26
+ * These parameters will be included in the authorization request sent to the server.
27
+ * If not provided, no additional parameters will be sent.
28
+ *
29
+ * @example
30
+ * signInOptions: { prompt: "login", fidp: "OrganizationSSO" }
31
+ */
32
+ export type SignInOptions = Record < string , any > ;
33
+
34
+ /**
35
+ * Interface representing the additional parameters to be sent in the sign-out request.
36
+ * This can include custom parameters that your authorization server supports.
37
+ * These parameters will be included in the sign-out request sent to the server.
38
+ * If not provided, no additional parameters will be sent.
39
+ *
40
+ * @example
41
+ * signOutOptions: { idTokenHint: "your-id-token-hint" }
42
+ */
43
+ export type SignOutOptions = Record < string , unknown > ;
44
+
45
+ /**
46
+ * Interface representing the additional parameters to be sent in the sign-up request.
47
+ * This can include custom parameters that your authorization server supports.
48
+ * These parameters will be included in the sign-up request sent to the server.
49
+ * If not provided, no additional parameters will be sent.
50
+ *
51
+ * @example
52
+ * signUpOptions: { appId: "your-app-id" }
53
+ */
54
+ export type SignUpOptions = Record < string , unknown > ;
55
+
23
56
export interface BaseConfig < T = unknown > extends WithPreferences {
24
57
/**
25
58
* Optional URL where the authorization server should redirect after authentication.
@@ -134,6 +167,24 @@ export interface BaseConfig<T = unknown> extends WithPreferences {
134
167
clockTolerance ?: number ;
135
168
} ;
136
169
} ;
170
+
171
+ /**
172
+ * Optional additional parameters to be sent in the authorize request.
173
+ * @see {@link SignInOptions } for more details.
174
+ */
175
+ signInOptions ?: SignInOptions ;
176
+
177
+ /**
178
+ * Optional additional parameters to be sent in the sign-out request.
179
+ * @see {@link SignOutOptions } for more details.
180
+ */
181
+ signOutOptions ?: SignOutOptions ;
182
+
183
+ /**
184
+ * Optional additional parameters to be sent in the sign-up request.
185
+ * @see {@link SignUpOptions } for more details.
186
+ */
187
+ signUpOptions ?: SignUpOptions ;
137
188
}
138
189
139
190
export interface WithPreferences {
0 commit comments