@openfort/openfort-js 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3192,25 +3192,6 @@ export interface GasReportTransactionIntentsInner {
3192
3192
  */
3193
3193
  'id': string;
3194
3194
  }
3195
- /**
3196
- *
3197
- * @export
3198
- * @interface GetSigninUrlResponse
3199
- */
3200
- export interface GetSigninUrlResponse {
3201
- /**
3202
- *
3203
- * @type {string}
3204
- * @memberof GetSigninUrlResponse
3205
- */
3206
- 'url': string;
3207
- /**
3208
- *
3209
- * @type {string}
3210
- * @memberof GetSigninUrlResponse
3211
- */
3212
- 'key': string;
3213
- }
3214
3195
  /**
3215
3196
  * Google oauth configuration
3216
3197
  * @export
@@ -3241,12 +3222,6 @@ export interface GoogleOAuthConfig {
3241
3222
  * @memberof GoogleOAuthConfig
3242
3223
  */
3243
3224
  'clientSecret': string;
3244
- /**
3245
- * The URI to redirect to after completing the auth request. You can use Openfort redirect URL: https://openfort.xyz/iam/v1/oauth/google/callback
3246
- * @type {string}
3247
- * @memberof GoogleOAuthConfig
3248
- */
3249
- 'redirectUri': string;
3250
3225
  }
3251
3226
  /**
3252
3227
  *
@@ -4396,12 +4371,6 @@ export interface OAuthConfig {
4396
4371
  * @memberof OAuthConfig
4397
4372
  */
4398
4373
  'clientSecret': string;
4399
- /**
4400
- * The URI to redirect to after completing the auth request. You can use Openfort redirect URL: https://openfort.xyz/iam/v1/oauth/google/callback
4401
- * @type {string}
4402
- * @memberof OAuthConfig
4403
- */
4404
- 'redirectUri': string;
4405
4374
  /**
4406
4375
  * Title ID of your Play Fab gaming service environment.
4407
4376
  * @type {string}
@@ -4435,11 +4404,11 @@ export interface OAuthConfigListResponse {
4435
4404
  */
4436
4405
  export interface OAuthInitRequest {
4437
4406
  /**
4438
- * Access token to be verified
4439
- * @type {string}
4407
+ *
4408
+ * @type {OAuthInitRequestOptions}
4440
4409
  * @memberof OAuthInitRequest
4441
4410
  */
4442
- 'token': string;
4411
+ 'options'?: OAuthInitRequestOptions;
4443
4412
  /**
4444
4413
  *
4445
4414
  * @type {OAuthProvider}
@@ -4447,6 +4416,39 @@ export interface OAuthInitRequest {
4447
4416
  */
4448
4417
  'provider': OAuthProvider;
4449
4418
  }
4419
+ /**
4420
+ *
4421
+ * @export
4422
+ * @interface OAuthInitRequestOptions
4423
+ */
4424
+ export interface OAuthInitRequestOptions {
4425
+ /**
4426
+ * If set to true does not immediately redirect the current browser context to visit the OAuth authorization page for the provider.
4427
+ * @type {boolean}
4428
+ * @memberof OAuthInitRequestOptions
4429
+ */
4430
+ 'skipBrowserRedirect'?: boolean;
4431
+ /**
4432
+ * An object of query params
4433
+ * @type {{ [key: string]: string; }}
4434
+ * @memberof OAuthInitRequestOptions
4435
+ */
4436
+ 'queryParams'?: {
4437
+ [key: string]: string;
4438
+ };
4439
+ /**
4440
+ * A space-separated list of scopes granted to the OAuth application.
4441
+ * @type {string}
4442
+ * @memberof OAuthInitRequestOptions
4443
+ */
4444
+ 'scopes'?: string;
4445
+ /**
4446
+ * A URL to send the user to after they are confirmed.
4447
+ * @type {string}
4448
+ * @memberof OAuthInitRequestOptions
4449
+ */
4450
+ 'redirectTo'?: string;
4451
+ }
4450
4452
  /**
4451
4453
  * Enum of the supporting OAuth providers.
4452
4454
  * @export
@@ -4518,6 +4520,25 @@ export interface OAuthRequest {
4518
4520
  */
4519
4521
  'token': string;
4520
4522
  }
4523
+ /**
4524
+ *
4525
+ * @export
4526
+ * @interface OAuthResponse
4527
+ */
4528
+ export interface OAuthResponse {
4529
+ /**
4530
+ *
4531
+ * @type {string}
4532
+ * @memberof OAuthResponse
4533
+ */
4534
+ 'url': string;
4535
+ /**
4536
+ *
4537
+ * @type {string}
4538
+ * @memberof OAuthResponse
4539
+ */
4540
+ 'key': string;
4541
+ }
4521
4542
  /**
4522
4543
  *
4523
4544
  * @export
@@ -9014,7 +9035,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
9014
9035
  * @param {*} [options] Override http request option.
9015
9036
  * @throws {RequiredError}
9016
9037
  */
9017
- initOAuth(oAuthInitRequest: OAuthInitRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSigninUrlResponse>>;
9038
+ initOAuth(oAuthInitRequest: OAuthInitRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthResponse>>;
9018
9039
  /**
9019
9040
  * Create a challenge to link external wallet to the player.
9020
9041
  * @summary Initialize SIWE.
@@ -9144,7 +9165,7 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
9144
9165
  * @param {*} [options] Override http request option.
9145
9166
  * @throws {RequiredError}
9146
9167
  */
9147
- initOAuth(oAuthInitRequest: OAuthInitRequest, options?: any): AxiosPromise<GetSigninUrlResponse>;
9168
+ initOAuth(oAuthInitRequest: OAuthInitRequest, options?: any): AxiosPromise<OAuthResponse>;
9148
9169
  /**
9149
9170
  * Create a challenge to link external wallet to the player.
9150
9171
  * @summary Initialize SIWE.
@@ -9281,7 +9302,7 @@ export declare class AuthenticationApi extends BaseAPI {
9281
9302
  * @throws {RequiredError}
9282
9303
  * @memberof AuthenticationApi
9283
9304
  */
9284
- initOAuth(oAuthInitRequest: OAuthInitRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSigninUrlResponse, any>>;
9305
+ initOAuth(oAuthInitRequest: OAuthInitRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OAuthResponse, any>>;
9285
9306
  /**
9286
9307
  * Create a challenge to link external wallet to the player.
9287
9308
  * @summary Initialize SIWE.