Skip to content

Commit

Permalink
Update signer property
Browse files Browse the repository at this point in the history
  • Loading branch information
germartinez committed Sep 19, 2024
1 parent 2134e0e commit 69cd54d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions pages/sdk/signers/magic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
### Get the provider and signer
Once the user is logged in, you can get the `provider` and `signerAddress`, which is the externally-owned account of the user that was derived from its credentials.
Once the user is logged in, you can get the `provider` and `signer`, which is the externally-owned account of the user that was derived from its credentials.
{/* <!-- vale off --> */}
Expand All @@ -115,14 +115,14 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
})
const metadata = await magic.user.getInfo()
const signerAddress = metadata.publicAddress
const signer = metadata.publicAddress
```
</Tabs.Tab>
</Tabs>
{/* <!-- vale on --> */}
With the `provider` and `signerAddress` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
With the `provider` and `signer` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
### Logout
Expand All @@ -141,7 +141,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
## Recap and further reading
After following this guide, you are able to create a Safe signer using Magic and get the `provider` and `signerAddress` required to initialize the kits from the Safe\{Core\} SDK.
After following this guide, you are able to create a Safe signer using Magic and get the `provider` and `signer` required to initialize the kits from the Safe\{Core\} SDK.
Learn more about Magic by checking the following resources:
Expand Down
8 changes: 4 additions & 4 deletions pages/sdk/signers/privy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
### Get the provider and signer
Once the user is logged in, you can get the `provider` and `signerAddress`, which is the externally-owned account of the user that was derived from its credentials.
Once the user is logged in, you can get the `provider` and `signer`, which is the externally-owned account of the user that was derived from its credentials.
To do that there is a `useEffect()` that is executed when any of the `ready`, `authenticated`, `readyWallets` and `wallets` variables have its value updated. Once they all are `true` and `wallets` has a length greater than zero, you have access to the `wallets` first element, which is the user's connected signer.
Expand All @@ -143,7 +143,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
transport: custom(ethereumProvider)
})
const signerAddress = wallets[0].address
const signer = wallets[0].address
}
}
init()
Expand All @@ -154,7 +154,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
{/* <!-- vale on --> */}
With the `provider` and `signerAddress` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
With the `provider` and `signer` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
### Logout
Expand All @@ -172,7 +172,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
## Recap and further reading
After following this guide, you are able to create a Safe signer using Privy and get the `provider` and `signerAddress` required to initialize the kits from the Safe\{Core\} SDK.
After following this guide, you are able to create a Safe signer using Privy and get the `provider` and `signer` required to initialize the kits from the Safe\{Core\} SDK.
Learn more about Privy by checking the following resources:
Expand Down
8 changes: 4 additions & 4 deletions pages/sdk/signers/web3auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
### Get the provider and signer
Once the user is logged in, you can get the `provider` and `signerAddress`, which is the externally-owned account of the user that was derived from its credentials.
Once the user is logged in, you can get the `provider` and `signer`, which is the externally-owned account of the user that was derived from its credentials.
{/* <!-- vale off --> */}
Expand All @@ -141,14 +141,14 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
transport: custom(web3authProvider)
})
const signerAddress = await provider.getAddresses())[0]
const signer = await provider.getAddresses())[0]
```
</Tabs.Tab>
</Tabs>
{/* <!-- vale on --> */}
With the `provider` and `signerAddress` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
With the `provider` and `signer` you are ready to instantiate any of the kits from the Safe\{Core\} SDK and set up or use this signer as a Safe owner.
### Logout
Expand All @@ -166,7 +166,7 @@ Check out the [Safe Signers demo app](https://github.com/5afe/safe-signers) on G
## Recap and further reading
After following this guide, you are able to create a Safe signer using Web3Auth and get the `provider` and `signerAddress` required to initialize the kits from the Safe\{Core\} SDK.
After following this guide, you are able to create a Safe signer using Web3Auth and get the `provider` and `signer` required to initialize the kits from the Safe\{Core\} SDK.
Learn more about Web3Auth by checking the following resources:
Expand Down

0 comments on commit 69cd54d

Please sign in to comment.