Skip to content

Commit

Permalink
Use native email login support
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Nov 8, 2023
1 parent 93c2341 commit cdae311
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 264 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"@0xsequence/design-system": "^1.0.13",
"@0xsequence/indexer": "^1.1.3",
"@0xsequence/network": "^1.1.3",
"@0xsequence/waas": "0.0.0-20231108135717",
"@aws-sdk/client-cognito-identity-provider": "^3.441.0",
"@0xsequence/waas": "0.0.0-20231108174744",
"@react-oauth/google": "^0.11.1",
"@vanilla-extract/css": "^1.12.0",
"axios": "^1.6.0",
Expand Down
173 changes: 10 additions & 163 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ function Login() {
initiateAuth: initiateEmailAuth,
sendChallengeAnswer,
} = useEmailAuth({
region: 'us-east-2',
clientId: '5fl7dg7mvu534o9vfjbc6hj31p',
onSuccess: async (idToken) => {
setSigningIn(true)
const walletAddress = await sequence.signIn({ idToken }, randomName())
Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const node = new ethers.providers.JsonRpcProvider('https://nodes.sequence

export const sequence = new Sequence({
network: 'polygon',
key: 'eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyJ9',
key: 'eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyIsImVtYWlsQ2xpZW50SWQiOiI1Zmw3ZGc3bXZ1NTM0bzl2ZmpiYzZoajMxcCJ9',
}, defaults.TEMPLATE_NEXT)

export const router = createHashRouter([
Expand Down
Loading

0 comments on commit cdae311

Please sign in to comment.