Skip to content

Building-Apps / Wallet: add Recovery SEP-30 instructions - #261

Merged
acharb merged 4 commits into
mainfrom
acharb-recovery
Oct 31, 2023
Merged

acharb merged 4 commits into
mainfrom
acharb-recovery

Conversation

@acharb

@acharb acharb commented Oct 30, 2023 •

Copy link
Copy Markdown
Contributor

ticket

Adds instructions for using the sep-30 recovery code in the wallet-sdk

moved a lot of the same instruction over from the kotlin sdk wallet guide

@stellar-jenkins

Copy link
Copy Markdown

Something went wrong with PR preview build please check

Comment thread docs/building-apps/wallet/sep30.mdx Resolved

@ifropc ifropc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except 1 comment

Comment thread docs/building-apps/wallet/sep30.mdx Outdated

</CodeExample>

Next, we need to define SEP-30 identities. In this example we are going to use the same identity on both recovery servers.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind adding one more identity for the second server, using email? (just for clarity and because using same identity on both servers is an anti-pattern)

@acharb acharb Oct 30, 2023 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like this? 85e9958

when I tried setting the identity with just email like this:

const identity2 = {
  role: RecoveryRole.OWNER,
  authMethods: [
    {
      type: RecoveryType.EMAIL,
      value: "[email protected]",
    },
  ],
};

I was getting a 404 with the recovery server when it gets to requesting a signature. From my understanding the recovery server identifies the account from the recoveryKey in the authToken right? Do you know how it should work when the identity is email only?

@acharb
acharb requested a review from ifropc October 31, 2023 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants