Skip to content

Commit 8cdc4d2

Browse files
feat: always add URI to SIWE payload
1 parent e4b6d87 commit 8cdc4d2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/soft-weeks-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Always add URI to SIWE payload

packages/thirdweb/src/auth/core/generate-login-payload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function generateLoginPayload(options: AuthOptions) {
4646
statement: options.login?.statement || DEFAULT_LOGIN_STATEMENT,
4747
version: options.login?.version || DEFAULT_LOGIN_VERSION,
4848
resources: options.login?.resources,
49-
uri: options.login?.uri,
49+
uri: options.login?.uri || options.domain,
5050
};
5151
};
5252
}

0 commit comments

Comments
 (0)