Skip to content

Commit

Permalink
Create a profile record on new user (#2520)
Browse files Browse the repository at this point in the history
* Create a profile record on new user

* Dont hold up account creation for the profile
  • Loading branch information
pfrazee authored Jan 13, 2024
1 parent 40c757a commit 8cc1bd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/state/session/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8cc1bd0

Please sign in to comment.