Skip to content

Commit

Permalink
Added appId and chainId to request
Browse files Browse the repository at this point in the history
  • Loading branch information
makylfang committed Oct 26, 2023
1 parent 8fb1cb0 commit 70ff086
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ interface AuthProvider {
loginWithSocial(loginType: string): void
loginWithLink(email: string): void
connect(): Promise<EthereumProvider>
appId: string
}

export class ArcanaProvider
Expand Down Expand Up @@ -254,8 +255,13 @@ export class ArcanaProvider
}

private createRequestUrl(data: any) {

Check warning on line 257 in src/provider.ts

View workflow job for this annotation

GitHub Actions / ESLint

src/provider.ts#L257

Unexpected any. Specify a different type (@typescript-eslint/no-explicit-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
}
Expand Down

0 comments on commit 70ff086

Please sign in to comment.