Skip to content

Commit 4becaf2

Browse files
committed
specify non-default signature scheme
1 parent 1a92654 commit 4becaf2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/builder/src/components/providers/identity/credentials.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const fetchChallengeCredential = async (
2525
payload: {
2626
address: payload.address,
2727
type: payload.type,
28+
signatureType: "EIP712",
2829
},
2930
}
3031
);
@@ -156,9 +157,12 @@ export function openOauthWindow(
156157
const channel = new BroadcastChannel(broadcastChannelName);
157158

158159
// timeout after 5 minutes
159-
const timeout = setTimeout(() => {
160-
reject(new VerificationError("Authorization timed out"));
161-
}, 1000 * 60 * 5);
160+
const timeout = setTimeout(
161+
() => {
162+
reject(new VerificationError("Authorization timed out"));
163+
},
164+
1000 * 60 * 5
165+
);
162166

163167
channel.addEventListener("message", (event: any) => {
164168
const eventData = event.data as {

0 commit comments

Comments
 (0)