Skip to content

Commit 7e714c7

Browse files
committed
feat: Address review comments
1 parent c26bbf9 commit 7e714c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.changeset/quick-kings-rescue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@clerk/clerk-js': patch
33
---
44

5-
Add browser locale to sign-in flow
5+
Add support for automatically sending the browser locale during the sign-in flow

packages/clerk-js/src/core/resources/SignIn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class SignIn extends BaseResource implements SignInResource {
168168
const locale = getBrowserLocale();
169169
return this._basePost({
170170
path: this.pathRoot,
171-
body: { ...params, ...(locale ? { locale } : {}) },
171+
body: { ...(locale ? { locale } : {}), ...params },
172172
});
173173
};
174174

@@ -713,7 +713,7 @@ class SignInFuture implements SignInFutureResource {
713713
const locale = getBrowserLocale();
714714
await this.resource.__internal_basePost({
715715
path: this.resource.pathRoot,
716-
body: { ...params, ...(locale ? { locale } : {}) },
716+
body: { ...(locale ? { locale } : {}), ...params },
717717
});
718718
}
719719

0 commit comments

Comments
 (0)