File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/clerk-js/src/core/resources Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments