Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class CustomAuth {
serverTimeOffset = 0,
nodeDetails,
checkCommitment = true,
source = "customauth",
}: CustomAuthArgs) {
if (!web3AuthClientId) throw new Error("Please provide a valid web3AuthClientId in constructor");
if (!network) throw new Error("Please provide a valid network in constructor");
Expand Down Expand Up @@ -105,6 +106,7 @@ export class CustomAuth {
legacyMetadataHost: metadataUrl,
keyType,
buildEnv,
source,
});
Torus.setAPIKey(apiKey);
this.torus = torus;
Expand Down
6 changes: 6 additions & 0 deletions src/utils/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ export interface CustomAuthArgs {
* @defaultValue true
*/
checkCommitment?: boolean;

/**
* Source of the login
* @defaultValue "customauth"
*/
source?: string;
}

export interface InitParams {
Expand Down
Loading