mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add redirect uri for android apple login
This commit is contained in:
parent
b79f75c170
commit
3d16b1d0b4
1 changed files with 8 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ import {
|
|||
createMobileEmailSignUpResponse,
|
||||
} from './sign_up'
|
||||
import { createMobileAccountCreationResponse } from './account_creation'
|
||||
import { env } from '../../../env'
|
||||
|
||||
export function mobileAuthRouter() {
|
||||
const router = express.Router()
|
||||
|
|
@ -60,5 +61,12 @@ export function mobileAuthRouter() {
|
|||
res.status(payload.statusCode).json(payload.json)
|
||||
})
|
||||
|
||||
router.post('/android-apple-redirect', (req, res) => {
|
||||
const { id_token } = req.body
|
||||
return res.redirect(
|
||||
`${env.client.url}/android-apple-token?token=${id_token as string}`
|
||||
)
|
||||
})
|
||||
|
||||
return router
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue