about summary refs log tree commit diff
path: root/src/state/models/me.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-09-26 21:03:07 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-09-26 21:03:07 -0500
commit02083029076de84e3f29a20e6bc6b0b2b13dfccf (patch)
treeb63f41e671650aad2e802afef9cc1e2320bb5778 /src/state/models/me.ts
parent2e352f383ec50cb45f39ed7b53c85fb6ea991bda (diff)
downloadvoidsky-02083029076de84e3f29a20e6bc6b0b2b13dfccf.tar.zst
Implement signin flow
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r--src/state/models/me.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index 1ec418b78..fb5445cbe 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -14,9 +14,8 @@ export class MeModel {
   async load() {
     const sess = this.rootStore.session
     if (sess.isAuthed) {
-      // TODO
-      this.did = 'did:test:alice'
-      this.name = 'alice.todo'
+      this.did = sess.userdid || ''
+      this.name = sess.username
       const profile = await this.rootStore.api.todo.social.getProfile({
         user: this.did,
       })