-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updating sequence to v1.10.0 * Updating sequence.js to 1.10.3 * Support legacy and modern versions of waas email authentication * Fixing sendChallengeAnswer function * Adding emailAuthVersion optional param to getDefaultConnectors params and emailWaas params * Removing toast error messages, we don't want to include additional ui components to a dapp, include the error message inline * Updating docs to include emailAuthVersion * Adding onEmailConflict to useWaasEmailAuth * email v2 auth working with onEmailAuthCodeRequired and onEmailConflict * Refactoring onSuccess * Fix persisting WaasActiveLoginType * Remove nonce related code * Refactor SequenceWaasProvider args * Adding email conflict handling * Updating sequence.js to v1.10.7 * Refactored Email waas verification * Add FormattedEmailConflictInfo --------- Co-authored-by: Tolgahan Arikan <[email protected]>
- Loading branch information
1 parent
6cfb2d3
commit 84c8340
Showing
35 changed files
with
619 additions
and
410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { CollectibleTileImage } from './CollectibleTileImage' |
3 changes: 1 addition & 2 deletions
3
...tProvider/ConnectWalletContent/Banner.tsx → ...ges/kit/src/components/Connect/Banner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { Box, Button, PINCodeInput, Spinner, Text } from '@0xsequence/design-system' | ||
import { useState } from 'react' | ||
|
||
interface EmailWaasVerifyProps { | ||
isLoading: boolean | ||
error?: Error | ||
onConfirm: (answer: string) => void | ||
} | ||
|
||
export const EmailWaasVerify = (props: EmailWaasVerifyProps) => { | ||
const { isLoading, error, onConfirm } = props | ||
const [waasEmailPinCode, setWaasEmailPinCode] = useState<string[]>([]) | ||
|
||
return ( | ||
<> | ||
<Box paddingY="6" alignItems="center" justifyContent="center" flexDirection="column"> | ||
<Text marginTop="5" marginBottom="4" variant="normal" color="text80"> | ||
Enter code received in email. | ||
</Text> | ||
<PINCodeInput value={waasEmailPinCode} digits={6} group={3} onChange={setWaasEmailPinCode} disabled={isLoading} /> | ||
|
||
<Box gap="4" marginTop="4" alignItems="center" justifyContent="center" flexDirection="column"> | ||
<Button | ||
variant="primary" | ||
disabled={waasEmailPinCode.includes('') || isLoading} | ||
label="Confirm" | ||
onClick={() => onConfirm(waasEmailPinCode.join(''))} | ||
data-id="verifyButton" | ||
/> | ||
|
||
{isLoading && <Spinner />} | ||
|
||
{error && ( | ||
<Text variant="small" color="negative" textAlign="center"> | ||
{error.message} | ||
</Text> | ||
)} | ||
</Box> | ||
</Box> | ||
</> | ||
) | ||
} |
3 changes: 1 addition & 2 deletions
3
...nnectWalletContent/ExtendedWalletList.tsx → ...components/Connect/ExtendedWalletList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Connect } from './Connect' |
Oops, something went wrong.