Skip to content

Assign a custom domain at signup that is not tied to the PDS #2602

Discussion options

You must be logged in to vote

The easiest way is to first create an account with a random handle and then change the handle immediately.

If you want to avoid it, you can use the custom handle from the beginning in the following steps. ( The intention is the same as the answer of @DavidBuchanan314)

  1. Create a pair of DID and handle (for example, in the case of did:plc, use CreatePlcOp). There is no need to fill service of the DID document with the appropriate value.
  2. Create a jwt. Please refer to createServiceJwt and #2100. The DID of PDS can be obtained in describeServer.
  3. Call createAccount using the prepared DID, handle and jwt.
  4. Update the DID document with the value obtained by getRecommendedDidCredentials. You can use

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kristojorg
Comment options

You must be logged in to vote
1 reply
@kristojorg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants