@supertokens-plugins/rownd-nodejs 0.3.0-beta.0 → 0.3.0-beta.2

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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import * as SuperTokens from 'supertokens-node';
1
+ import * as supertokens_node from 'supertokens-node';
2
2
  import { JSONObject, SuperTokensPlugin } from 'supertokens-node/types';
3
3
 
4
4
  type RowndSignInMethod = {
@@ -660,11 +660,16 @@ interface RowndPluginConfig {
660
660
  rowndAppKey: string;
661
661
  rowndAppSecret: string;
662
662
  enableDebugLogs?: boolean;
663
+ clientDomains?: RowndClientDomains;
663
664
  telemetry?: RowndTelemetryConfig;
664
665
  schema?: RowndSchema;
665
666
  appConfig?: RowndAppConfigInput;
666
667
  subBrands?: Record<string, RowndSubBrandConfigInput>;
667
668
  }
669
+ type RowndClientDomains = {
670
+ mobile?: string;
671
+ browser?: string;
672
+ } & Record<string, string>;
668
673
  type RowndTelemetryEvent = {
669
674
  outcome: "success";
670
675
  durationMs: number;
@@ -736,6 +741,7 @@ interface RowndPluginNormalisedConfig {
736
741
  rowndAppKey: string;
737
742
  rowndAppSecret: string;
738
743
  enableDebugLogs?: boolean;
744
+ clientDomains?: RowndClientDomains;
739
745
  telemetry?: RowndTelemetryConfig;
740
746
  schema?: RowndSchema;
741
747
  appConfig?: RowndAppConfigInput;
@@ -790,6 +796,7 @@ type RowndSchema = Record<string, RowndSchemaField>;
790
796
  declare const init: (config: RowndPluginConfig) => SuperTokensPlugin;
791
797
 
792
798
  declare const PLUGIN_ID = "supertokens-plugin-rownd";
799
+ declare const PLUGIN_VERSION = "0.3.0";
793
800
  declare const PLUGIN_SDK_VERSION: string[];
794
801
  declare const HANDLE_BASE_PATH = "/plugin/rownd";
795
802
  declare const PUBLIC_TENANT_ID = "public";
@@ -805,6 +812,8 @@ declare const ROWND_JWT_CLAIMS: {
805
812
  readonly AuthLevel: "https://auth.rownd.io/auth_level";
806
813
  };
807
814
  declare const DEFAULT_ROWND_SCHEMA: RowndSchema;
815
+ declare const HUB_LOGIN_PAGE_PATH = "/account/login";
816
+ declare const HUB_VERIFY_EMAIL_PAGE_PATH = "/account/verify-email";
808
817
 
809
818
  declare const ROWND_PLUGIN_ERROR_MESSAGES: {
810
819
  readonly MISSING_AUTHORIZATION_HEADER: "Missing authorization header";
@@ -820,7 +829,7 @@ declare function setRowndClient(client: IRowndClient): void;
820
829
  declare function getRowndClient(): IRowndClient;
821
830
 
822
831
  declare const _default: {
823
- init: (config: RowndPluginConfig) => SuperTokens.SuperTokensPlugin;
832
+ init: (config: RowndPluginConfig) => supertokens_node.SuperTokensPlugin;
824
833
  };
825
834
 
826
- export { ANONYMOUS_AUTH_METHOD_ID, DEFAULT_ROWND_SCHEMA, GUEST_AUTH_METHOD_ID, HANDLE_BASE_PATH, type IRowndClient, type MigrationResponse, PLUGIN_ID, PLUGIN_SDK_VERSION, PUBLIC_TENANT_ID, ROWND_JWT_CLAIMS, ROWND_PLUGIN_ERROR_MESSAGES, type RowndAppConfigInput, type RowndAuthConfig, type RowndBranding, type RowndCustomContent, type RowndLegal, type RowndPluginConfig, RowndPluginError, type RowndPluginErrorType, type RowndPluginNormalisedConfig, type RowndProfileConfig, type RowndSchema, type RowndSchemaField, type RowndSignInMethod, type RowndSubBrandConfigInput, type RowndTelemetryClient, type RowndTelemetryConfig, type RowndTelemetryEvent, type RowndUser, type RowndUserMetadata, type SuperTokensUserImport, _default as default, getRowndClient, init, setRowndClient };
835
+ export { ANONYMOUS_AUTH_METHOD_ID, DEFAULT_ROWND_SCHEMA, GUEST_AUTH_METHOD_ID, HANDLE_BASE_PATH, HUB_LOGIN_PAGE_PATH, HUB_VERIFY_EMAIL_PAGE_PATH, type IRowndClient, type MigrationResponse, PLUGIN_ID, PLUGIN_SDK_VERSION, PLUGIN_VERSION, PUBLIC_TENANT_ID, ROWND_JWT_CLAIMS, ROWND_PLUGIN_ERROR_MESSAGES, type RowndAppConfigInput, type RowndAuthConfig, type RowndBranding, type RowndClientDomains, type RowndCustomContent, type RowndLegal, type RowndPluginConfig, RowndPluginError, type RowndPluginErrorType, type RowndPluginNormalisedConfig, type RowndProfileConfig, type RowndSchema, type RowndSchemaField, type RowndSignInMethod, type RowndSubBrandConfigInput, type RowndTelemetryClient, type RowndTelemetryConfig, type RowndTelemetryEvent, type RowndUser, type RowndUserMetadata, type SuperTokensUserImport, _default as default, getRowndClient, init, setRowndClient };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as SuperTokens from 'supertokens-node';
1
+ import * as supertokens_node from 'supertokens-node';
2
2
  import { JSONObject, SuperTokensPlugin } from 'supertokens-node/types';
3
3
 
4
4
  type RowndSignInMethod = {
@@ -660,11 +660,16 @@ interface RowndPluginConfig {
660
660
  rowndAppKey: string;
661
661
  rowndAppSecret: string;
662
662
  enableDebugLogs?: boolean;
663
+ clientDomains?: RowndClientDomains;
663
664
  telemetry?: RowndTelemetryConfig;
664
665
  schema?: RowndSchema;
665
666
  appConfig?: RowndAppConfigInput;
666
667
  subBrands?: Record<string, RowndSubBrandConfigInput>;
667
668
  }
669
+ type RowndClientDomains = {
670
+ mobile?: string;
671
+ browser?: string;
672
+ } & Record<string, string>;
668
673
  type RowndTelemetryEvent = {
669
674
  outcome: "success";
670
675
  durationMs: number;
@@ -736,6 +741,7 @@ interface RowndPluginNormalisedConfig {
736
741
  rowndAppKey: string;
737
742
  rowndAppSecret: string;
738
743
  enableDebugLogs?: boolean;
744
+ clientDomains?: RowndClientDomains;
739
745
  telemetry?: RowndTelemetryConfig;
740
746
  schema?: RowndSchema;
741
747
  appConfig?: RowndAppConfigInput;
@@ -790,6 +796,7 @@ type RowndSchema = Record<string, RowndSchemaField>;
790
796
  declare const init: (config: RowndPluginConfig) => SuperTokensPlugin;
791
797
 
792
798
  declare const PLUGIN_ID = "supertokens-plugin-rownd";
799
+ declare const PLUGIN_VERSION = "0.3.0";
793
800
  declare const PLUGIN_SDK_VERSION: string[];
794
801
  declare const HANDLE_BASE_PATH = "/plugin/rownd";
795
802
  declare const PUBLIC_TENANT_ID = "public";
@@ -805,6 +812,8 @@ declare const ROWND_JWT_CLAIMS: {
805
812
  readonly AuthLevel: "https://auth.rownd.io/auth_level";
806
813
  };
807
814
  declare const DEFAULT_ROWND_SCHEMA: RowndSchema;
815
+ declare const HUB_LOGIN_PAGE_PATH = "/account/login";
816
+ declare const HUB_VERIFY_EMAIL_PAGE_PATH = "/account/verify-email";
808
817
 
809
818
  declare const ROWND_PLUGIN_ERROR_MESSAGES: {
810
819
  readonly MISSING_AUTHORIZATION_HEADER: "Missing authorization header";
@@ -820,7 +829,7 @@ declare function setRowndClient(client: IRowndClient): void;
820
829
  declare function getRowndClient(): IRowndClient;
821
830
 
822
831
  declare const _default: {
823
- init: (config: RowndPluginConfig) => SuperTokens.SuperTokensPlugin;
832
+ init: (config: RowndPluginConfig) => supertokens_node.SuperTokensPlugin;
824
833
  };
825
834
 
826
- export { ANONYMOUS_AUTH_METHOD_ID, DEFAULT_ROWND_SCHEMA, GUEST_AUTH_METHOD_ID, HANDLE_BASE_PATH, type IRowndClient, type MigrationResponse, PLUGIN_ID, PLUGIN_SDK_VERSION, PUBLIC_TENANT_ID, ROWND_JWT_CLAIMS, ROWND_PLUGIN_ERROR_MESSAGES, type RowndAppConfigInput, type RowndAuthConfig, type RowndBranding, type RowndCustomContent, type RowndLegal, type RowndPluginConfig, RowndPluginError, type RowndPluginErrorType, type RowndPluginNormalisedConfig, type RowndProfileConfig, type RowndSchema, type RowndSchemaField, type RowndSignInMethod, type RowndSubBrandConfigInput, type RowndTelemetryClient, type RowndTelemetryConfig, type RowndTelemetryEvent, type RowndUser, type RowndUserMetadata, type SuperTokensUserImport, _default as default, getRowndClient, init, setRowndClient };
835
+ export { ANONYMOUS_AUTH_METHOD_ID, DEFAULT_ROWND_SCHEMA, GUEST_AUTH_METHOD_ID, HANDLE_BASE_PATH, HUB_LOGIN_PAGE_PATH, HUB_VERIFY_EMAIL_PAGE_PATH, type IRowndClient, type MigrationResponse, PLUGIN_ID, PLUGIN_SDK_VERSION, PLUGIN_VERSION, PUBLIC_TENANT_ID, ROWND_JWT_CLAIMS, ROWND_PLUGIN_ERROR_MESSAGES, type RowndAppConfigInput, type RowndAuthConfig, type RowndBranding, type RowndClientDomains, type RowndCustomContent, type RowndLegal, type RowndPluginConfig, RowndPluginError, type RowndPluginErrorType, type RowndPluginNormalisedConfig, type RowndProfileConfig, type RowndSchema, type RowndSchemaField, type RowndSignInMethod, type RowndSubBrandConfigInput, type RowndTelemetryClient, type RowndTelemetryConfig, type RowndTelemetryEvent, type RowndUser, type RowndUserMetadata, type SuperTokensUserImport, _default as default, getRowndClient, init, setRowndClient };