At the moment, I'm trying to use Imperial to allow users to sign in to me web app using Google Auth. I've set up my code as follows (see below). The issue I'm experiencing at the moment is that processGoogleLogin is never fired. If I navigate to /google then I do see the OAuth page and on logging in using my Google account I am redirected to /authenticated which is correct but I never received an access token back it would seem and completion closure never appears to fire. Is there a piece of the set up that I am missing perhaps?
Thanks in advance 🙏
routes.swift
let imperialController = ImperialController(sessionsMiddleware: app.sessions.middleware)
try appRoutes.register(collection: imperialController)
At the moment, I'm trying to use Imperial to allow users to sign in to me web app using Google Auth. I've set up my code as follows (see below). The issue I'm experiencing at the moment is that
processGoogleLogin
is never fired. If I navigate to/google
then I do see the OAuth page and on logging in using my Google account I am redirected to/authenticated
which is correct but I never received an access token back it would seem and completion closure never appears to fire. Is there a piece of the set up that I am missing perhaps?Thanks in advance 🙏
routes.swift
ImperialController.swift