Create a profile record on new user (#2520)
* Create a profile record on new user * Dont hold up account creation for the profilezio/stable
parent
40c757afa9
commit
8cc1bd0c40
|
@ -223,6 +223,12 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||
throw new Error(`session: createAccount failed to establish a session`)
|
||||
}
|
||||
|
||||
/*dont await*/ agent.upsertProfile(_existing => {
|
||||
return {
|
||||
displayName: handle,
|
||||
}
|
||||
})
|
||||
|
||||
const account: SessionAccount = {
|
||||
service: agent.service.toString(),
|
||||
did: agent.session.did,
|
||||
|
|
Loading…
Reference in New Issue