@aarc-dev/auth-sdk
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,50 @@ | ||
import { AarcEthersSigner } from '@aarc-xyz/ethers-v6-signer'; | ||
declare class AuthSDK { | ||
private aarcApiKey; | ||
private chainId; | ||
private env; | ||
private config; | ||
walletAddress: string | undefined; | ||
private sessionKey?; | ||
private provider?; | ||
private session_identifier; | ||
private farcaster_session?; | ||
signature?: string; | ||
phoneNo?: string; | ||
email?: string; | ||
constructor(aarcApiKey: string, chainId: number, env: string, provider?: string); | ||
generateUrl(provider: string, session_identifier: string): string; | ||
pollStytchLogin(provider: string, session_identifier: string, onSuccess: (data: any) => void, onError: (data: any) => void, maxTime?: number, w?: Window): Promise<void>; | ||
sendOTP(isEmail: boolean, data: string): Promise<{ | ||
status: string; | ||
data?: any; | ||
message?: string; | ||
error?: any; | ||
}>; | ||
verifyOTP(session_identifier: string, isEmail: boolean, data: string, otp: string): Promise<{ | ||
status: string; | ||
data?: any; | ||
message?: string; | ||
error?: any; | ||
}>; | ||
callExternalWallets(account: any, signature: any, message: string, provider: string, nonce: string): Promise<{ | ||
status: string; | ||
data?: any; | ||
message?: string; | ||
error?: any; | ||
}>; | ||
getAarcWalletAddress(provider: any, providerType: any, nonce: string, message: string): Promise<{ | ||
status: string; | ||
data?: any; | ||
message?: string; | ||
error?: any; | ||
} | undefined>; | ||
authenticate(options: Record<string, any>): Promise<any>; | ||
getSigner(rpcUrl: string): Promise<AarcEthersSigner>; | ||
signMessage(rpcUrl: string, msg: string): Promise<string>; | ||
sendTransaction(to: string, value: string, rpcUrl: string): Promise<any>; | ||
} | ||
export default AuthSDK; | ||
export { } |
{ | ||
"name": "@aarc-dev/auth-sdk", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
857172
22575
6