Create a profile record on new user (#2520)

* Create a profile record on new user

* Dont hold up account creation for the profile
zio/stable
Paul Frazee 2024-01-12 17:01:14 -08:00 committed by GitHub
parent 40c757afa9
commit 8cc1bd0c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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,