@supertokens-plugins/profile-details-nodejs
Classes
Implementation
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/implementation.ts:13
Constructors
Constructor
new Implementation(pluginConfig: SuperTokensPluginProfileDetailsNormalisedConfig): Implementation;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/implementation.ts:39
Parameters
Returns
Properties
Methods
getInstanceOrThrow()
static getInstanceOrThrow(): Implementation;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/implementation.ts:27
Returns
init()
static init(pluginConfig: SuperTokensPluginProfileDetailsNormalisedConfig): Implementation;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/implementation.ts:18
Parameters
Returns
reset()
static reset(): void;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/implementation.ts:35
Returns
void
Type Aliases
BaseFormSection
type BaseFormSection = any;
SuperTokensPluginProfileDetailsConfig
type SuperTokensPluginProfileDetailsConfig =
| {
registerSectionsForProgressiveProfiling?: boolean;
sections?: BaseFormSection[];
}
| undefined;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/types.ts:3
SuperTokensPluginProfileDetailsImplementation
type SuperTokensPluginProfileDetailsImplementation = {
thirdPartyFieldMap: (originalImplementation: ThirdPartyFieldMap) => ThirdPartyFieldMap;
};
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/types.ts:10
Properties
SuperTokensPluginProfileDetailsNormalisedConfig
type SuperTokensPluginProfileDetailsNormalisedConfig = {
registerSectionsForProgressiveProfiling: boolean;
sections: BaseFormSection[];
};
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/types.ts:14
Properties
ThirdPartyFieldMap()
type ThirdPartyFieldMap = (providerId: string, field: BaseFormSection & {
sectionId: string;
}, rawUserInfoFromProvider: any, profile: BaseFormSection) => BaseFormSection[string];
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/types.ts:19
Parameters
Returns
BaseFormSection[string]
Variables
default
default: {
getProfile: (userId: string, session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<BaseProfile>;
getSections: (session: SessionContainerInterface, userContext?: Record<string, any>) => BaseFormSection[];
init: any;
PLUGIN_ID: string;
PLUGIN_VERSION: string;
updateProfile: (userId: string, profile: BaseFormFieldPayload[], session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<void>;
};
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/index.ts:27
Type Declaration
DEFAULT_REGISTER_SECTIONS_FOR_PROGRESSIVE_PROFILING
const DEFAULT_REGISTER_SECTIONS_FOR_PROGRESSIVE_PROFILING: true = true;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:12
enableDebugLogs
enableDebugLogs: any;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/logger.ts:4
HANDLE_BASE_PATH
const HANDLE_BASE_PATH: "/plugin/supertokens-plugin-profile-details";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:5
init
const init: any;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/plugin.ts:20
logDebugMessage
logDebugMessage: any;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/logger.ts:4
METADATA_KEY
const METADATA_KEY: "supertokens-plugin-profile-details";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:7
METADATA_PROFILE_KEY
const METADATA_PROFILE_KEY: "st-profile" = "st-profile";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:8
PLUGIN_ID
const PLUGIN_ID: "supertokens-plugin-profile-details" = "supertokens-plugin-profile-details";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:1
PLUGIN_SDK_VERSION
const PLUGIN_SDK_VERSION: string[];
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:3
PLUGIN_VERSION
const PLUGIN_VERSION: "0.0.1" = "0.0.1";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:2
SUPERTOKENS_PLUGIN_PROGRESSIVE_PROFILING_ID
const SUPERTOKENS_PLUGIN_PROGRESSIVE_PROFILING_ID: "supertokens-plugin-progressive-profiling" = "supertokens-plugin-progressive-profiling";
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/constants.ts:10
Functions
getProfile()
function getProfile(
userId: string,
session: SessionContainerInterface,
userContext?: Record<string, any>): Promise<BaseProfile>;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/index.ts:10
Parameters
Returns
Promise<BaseProfile>
getSections()
function getSections(session: SessionContainerInterface, userContext?: Record<string, any>): BaseFormSection[];
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/index.ts:23
Parameters
Returns
BaseFormSection[]
updateProfile()
function updateProfile(
userId: string,
profile: BaseFormFieldPayload[],
session: SessionContainerInterface,
userContext?: Record<string, any>): Promise<void>;
Defined in: supertokens-plugins/packages/profile-details-nodejs/src/index.ts:14
Parameters
Returns
Promise<void>