From 70ff086b0ecbadeaa936636ffb5f9a4c104f9fbc Mon Sep 17 00:00:00 2001 From: makylfang Date: Thu, 26 Oct 2023 10:45:20 +0530 Subject: [PATCH] Added appId and chainId to request --- src/provider.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/provider.ts b/src/provider.ts index d3ef671..5fd2cbc 100644 --- a/src/provider.ts +++ b/src/provider.ts @@ -52,6 +52,7 @@ interface AuthProvider { loginWithSocial(loginType: string): void loginWithLink(email: string): void connect(): Promise + appId: string } export class ArcanaProvider @@ -254,8 +255,13 @@ export class ArcanaProvider } private createRequestUrl(data: any) { + const r = { + appId: this.auth.appId, + chainId: this.chainId, + request: data, + } const u = new URL('/permission/', this.authUrl) - const hash = encodeJSONToBase64(data) + const hash = encodeJSONToBase64(r) u.hash = hash return u.href }