mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Embed the apple id button so it doesnt fail when the apple CDN returns 404
This commit is contained in:
parent
ace9445599
commit
cdef752a81
2 changed files with 119 additions and 7 deletions
|
|
@ -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
Loading…
Reference in a new issue