File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
packages/manifest/frontend/src Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ export function SignupForm({ onSuccess }: SignupFormProps) {
4545 email,
4646 password,
4747 name : `${ firstName . trim ( ) } ${ lastName . trim ( ) } ` ,
48+ firstName : firstName . trim ( ) ,
49+ lastName : lastName . trim ( ) ,
4850 } ) ;
4951
5052 if ( result . error ) {
Original file line number Diff line number Diff line change 11import { createAuthClient } from 'better-auth/react' ;
2+ import { inferAdditionalFields } from 'better-auth/client/plugins' ;
23import { BACKEND_URL } from './api' ;
34
45/**
@@ -7,6 +8,14 @@ import { BACKEND_URL } from './api';
78 */
89export const authClient = createAuthClient ( {
910 baseURL : BACKEND_URL ,
11+ plugins : [
12+ inferAdditionalFields ( {
13+ user : {
14+ firstName : { type : 'string' } ,
15+ lastName : { type : 'string' } ,
16+ } ,
17+ } ) ,
18+ ] ,
1019} ) ;
1120
1221// Export commonly used methods for convenience
You can’t perform that action at this time.
0 commit comments