File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export class CustomAuth {
7474 serverTimeOffset = 0 ,
7575 nodeDetails,
7676 checkCommitment = true ,
77+ source = "customauth" ,
7778 } : CustomAuthArgs ) {
7879 if ( ! web3AuthClientId ) throw new Error ( "Please provide a valid web3AuthClientId in constructor" ) ;
7980 if ( ! network ) throw new Error ( "Please provide a valid network in constructor" ) ;
@@ -105,6 +106,7 @@ export class CustomAuth {
105106 legacyMetadataHost : metadataUrl ,
106107 keyType,
107108 buildEnv,
109+ source,
108110 } ) ;
109111 Torus . setAPIKey ( apiKey ) ;
110112 this . torus = torus ;
Original file line number Diff line number Diff line change @@ -247,6 +247,12 @@ export interface CustomAuthArgs {
247247 * @defaultValue true
248248 */
249249 checkCommitment ?: boolean ;
250+
251+ /**
252+ * Source of the login
253+ * @defaultValue "customauth"
254+ */
255+ source ?: string ;
250256}
251257
252258export interface InitParams {
You can’t perform that action at this time.
0 commit comments