Embed the apple id button so it doesnt fail when the apple CDN returns 404
This commit is contained in:
@ -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>
|
||||
)}
|
||||
|
||||
117
packages/web/components/templates/auth/AppleIdButton.tsx
Normal file
117
packages/web/components/templates/auth/AppleIdButton.tsx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user