Skip to content

Commit

Permalink
working passkey separation
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-dev committed Nov 11, 2024
1 parent 5f9387f commit 3ed13ee
Show file tree
Hide file tree
Showing 20 changed files with 264 additions and 186 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"rollup-plugin-node-externals": "^6.1.2",
"rollup-plugin-postcss": "^4.0.2",
"rollup-preserve-directives": "^1.1.2",
"@rollup/plugin-alias": "5.1.1",
"@rollup/plugin-url":"8.0.2",
"tsx": "^3.12.7",
"typescript": "^5.1.4"
},
Expand Down
File renamed without changes
10 changes: 10 additions & 0 deletions packages/sdk-react/src/assets/checkbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/sdk-react/src/assets/clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/sdk-react/src/assets/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
3 changes: 3 additions & 0 deletions packages/sdk-react/src/assets/faceid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/sdk-react/src/assets/fingerprint.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
10 changes: 10 additions & 0 deletions packages/sdk-react/src/assets/keyhole.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/sdk-react/src/assets/sms.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/sdk-react/src/assets/turnkey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion packages/sdk-react/src/components/auth/Apple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { sha256 } from "@noble/hashes/sha2";
import { bytesToHex } from "@noble/hashes/utils";
import AppleLogin from "react-apple-login";
import styles from "./Socials.module.css";
import appleIcon from "assets/apple.svg";
interface AppleAuthButtonProps {
iframePublicKey: string;
clientId: string;
Expand Down Expand Up @@ -51,7 +52,7 @@ const AppleAuthButton: React.FC<AppleAuthButtonProps> = ({
responseMode="fragment"
render={({ onClick }) => (
<div onClick={onClick} className={styles.socialButton}>
<img src="/apple.svg" className = {styles.iconSmall}/>
<img {...appleIcon} className = {styles.iconSmall}/>
<span>Continue with Apple</span>
</div>
)}
Expand Down
48 changes: 48 additions & 0 deletions packages/sdk-react/src/components/auth/Auth.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,51 @@ button:disabled {
color: #ff4c4c;
font-size: 12px;
}

.passkeyIconContainer {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin: 16px 0;
}

.rowsContainer {
display: flex;
flex-direction: column;
justify-content: center;
gap: 8px;
margin-top: 16px;
width: 95%;
margin-left: auto;
margin-right: auto;
margin-bottom: 32px;
}

.row {
display: flex;
align-items: center;
}

.rowIcon {
padding-right: 8px;
}


.noPasskeyLink {
color: var(--Blue-500, #4C48FF);
font-size: 0.9rem;
margin-top: 8px;
cursor: pointer;
align-items: center;
text-align: center;
display: inline-block;
}

.passkeyContainer {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 16px;
}
Loading

0 comments on commit 3ed13ee

Please sign in to comment.