You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For testing purposes, we need an instance of wnfs. Things like username and keys don't matter so much here.
I learned you must call await program.auth.register({ username }) before we get a session via await program.auth.session().
constprogram=awaitwn.program({namespace: APP_INFO})const{ crypto }=program.componentsconstusername=awaitcreateUsername(awaitcreateDID(crypto))// *must* call `register` before we use the `session`awaitprogram.auth.register({ username })constsession=program.session??awaitprogram.auth.session()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
For testing purposes, we need an instance of
wnfs
. Things like username and keys don't matter so much here.I learned you must call
await program.auth.register({ username })
before we get a session viaawait program.auth.session()
.Beta Was this translation helpful? Give feedback.
All reactions