tangoclinh1995 / thehonorclub-mobileapp

The Honor Club's Mobile App Project for COMP 3111H
2 stars 1 forks source link

[Implementation] OAuth redirection flow doesn't work #54

Closed jshin49 closed 7 years ago

jshin49 commented 7 years ago

Currently I have successfully managed to login with Signing in with Popup.

However, while this works without bugs, it cannot be integrated into mobile, as popup isn't supported in mobile apps.

We need to use redirection, but this is being buggy and full of errors.

Further investigation is required.

jshin49 commented 7 years ago

I might have a solution to this, which is using the localStorage of HTML5.

I realized the firebase service would store the credentials in localStorage, and that's how they manage the oAuth flow.

If I utilize this maybe Redirection will also work.

jshin49 commented 7 years ago

Redirection still doesn't work on the mobile version using IonicView.

Still don't know why.