Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect loop on Brave #2

Closed
ruanmartinelli opened this issue Dec 30, 2016 · 4 comments
Closed

redirect loop on Brave #2

ruanmartinelli opened this issue Dec 30, 2016 · 4 comments

Comments

@ruanmartinelli
Copy link

Hi, first of all congratulations on the app!

When opening it on my phone and after sign in with my twitter account I get stuck in a redirect loop between twitter and notella.

The redirect cycle goes like: notella.now.sh --> firebase url --> twitter auth page --> back to notella

This seems to be an issue with Brave for Android as I wasn't able to reproduce the behavior on Chrome.

@siddharthkp
Copy link
Owner

Ouch! Any ideas on how to fix it?

@siddharthkp siddharthkp changed the title redirect loop redirect loop on Brave Jan 6, 2017
@billiegoose
Copy link

billiegoose commented Jan 11, 2017

Saw notella on zeithq's Twitter. Is twitter required to use a note taking app? The site redirects me right back to the OAuth page if I decline to grant it access. I'm thinking this might be the underlying cause of the redirect loop. Maybe add a manual Twitter Login button instead of trying to login automatically?

@siddharthkp
Copy link
Owner

@wmhilton that's interesting. any ideas on how to solve that?

@billiegoose
Copy link

Well... it looks like here you say "if there is no user, login with redirect" but that runs on page load. So you'll just keep redirecting to Twitter every time a use clicks "Cancel".

Instead of listening to firebase.auth().onAuthStateChanged I would use the login methods describe here and preferably only prompt the user to login when they try to save their notes. That way users can try it before signing in. It looks like Firebase has some other authentication options besides just Twitter too, for people who don't have Twitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants