@koolbase/core 12.36.0 → 12.37.0

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.
package/dist/cjs/auth.js CHANGED
@@ -392,6 +392,14 @@ class KoolbaseAuth {
392
392
  if (params.nonce && params.nonce.length > 0) {
393
393
  body.nonce = params.nonce;
394
394
  }
395
+ // Exchanged by the server for the token it revokes when the account is
396
+ // deleted, as Apple asks.
397
+ if (params.authorizationCode && params.authorizationCode.length > 0) {
398
+ body.authorization_code = params.authorizationCode;
399
+ }
400
+ if (params.client) {
401
+ body.client = params.client;
402
+ }
395
403
  if (params.fullName) {
396
404
  const nameJson = {};
397
405
  if (params.fullName.givenName)
@@ -602,6 +602,11 @@ export interface SignInWithAppleParams {
602
602
  identityToken: string;
603
603
  nonce?: string;
604
604
  fullName?: AppleFullName;
605
+ /** The credential's authorization code: the server exchanges it for the
606
+ * token it revokes when the account is deleted, as Apple asks. */
607
+ authorizationCode?: string;
608
+ /** 'web' when the code came from Apple's web sign-in (the services id). */
609
+ client?: 'web';
605
610
  }
606
611
  /**
607
612
  * Parameters for `KoolbaseAuth.signInWithGoogle`. The SDK is
package/dist/esm/auth.js CHANGED
@@ -389,6 +389,14 @@ export class KoolbaseAuth {
389
389
  if (params.nonce && params.nonce.length > 0) {
390
390
  body.nonce = params.nonce;
391
391
  }
392
+ // Exchanged by the server for the token it revokes when the account is
393
+ // deleted, as Apple asks.
394
+ if (params.authorizationCode && params.authorizationCode.length > 0) {
395
+ body.authorization_code = params.authorizationCode;
396
+ }
397
+ if (params.client) {
398
+ body.client = params.client;
399
+ }
392
400
  if (params.fullName) {
393
401
  const nameJson = {};
394
402
  if (params.fullName.givenName)
@@ -602,6 +602,11 @@ export interface SignInWithAppleParams {
602
602
  identityToken: string;
603
603
  nonce?: string;
604
604
  fullName?: AppleFullName;
605
+ /** The credential's authorization code: the server exchanges it for the
606
+ * token it revokes when the account is deleted, as Apple asks. */
607
+ authorizationCode?: string;
608
+ /** 'web' when the code came from Apple's web sign-in (the services id). */
609
+ client?: 'web';
605
610
  }
606
611
  /**
607
612
  * Parameters for `KoolbaseAuth.signInWithGoogle`. The SDK is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koolbase/core",
3
- "version": "12.36.0",
3
+ "version": "12.37.0",
4
4
  "description": "Koolbase SDK core \u2014 shared behaviour behind @koolbase/react-native and @koolbase/js. Install one of those, not this.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/esm/index.d.ts",