Embed the apple id button so it doesnt fail when the apple CDN returns 404

This commit is contained in:
Jackson Harper
2022-10-04 13:04:52 +08:00
parent ace9445599
commit cdef752a81
2 changed files with 119 additions and 7 deletions

View File

@ -8,6 +8,7 @@ import {
appleAuthRedirectURI,
} from '../../lib/appConfig'
import AppleLogin from 'react-apple-login'
import { AppleIdButton } from './auth/AppleIdButton'
const StyledTextSpan = styled('span', StyledText)
@ -90,19 +91,13 @@ export function LoginForm(props: LoginFormProps): JSX.Element {
height: '40px',
}}
>
<AppleLogin
<AppleIdButton
clientId="app.omnivore"
scope="name email"
state="web:login"
redirectURI={appleAuthRedirectURI}
responseMode="form_post"
responseType="code id_token"
designProp={{
color: 'black',
width: 261,
height: 40,
type: 'continue',
}}
/>
</Box>
)}

File diff suppressed because one or more lines are too long