You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a better user experience at least on the flutter mobile app, it takes out all the deep linking hassle + user is already logged in e.g. Twitter, Google, FB, etc.
Supporting pop up kind of like how Firebase Auth does it involves some additional development on the server side, so at the moment it cannot be supported, but it is definitely something we would want at some point.
@phamhieu Could we talk to the back end team about supporting this on gotrue? Not a must have, but would be great to have it somewhere along the line!
Supporting pop up kind of like how Firebase Auth does it involves some additional development on the server side, so at the moment it cannot be supported, but it is definitely something we would want at some point.
@phamhieu Could we talk to the back end team about supporting this on gotrue? Not a must have, but would be great to have it somewhere along the line!
@dshukertjr I think it's nothing to do with supabase it's more like a flutter web feature like I am using web view in the phone. When my url contains access token I do navigator pop and pass url back to retrieve the session. When to do same on the Web may be with dialog box it's possible.
@nomanmurtaza786 Ah, got it! If there is only one page that you would like to return to, they you can actually configure the redirect URL to go to that page like this:
With this, you can always make sure that the user is sent back to the login page that they originally came from! Would this be sufficient in your case?
Thanks @dshukertjr yes. Can I do like that mydomain/post?id=12, mydomain/post?id=67 and so on. Or every /post?id should be there in the listing?
@nomanmurtaza786 it's better to save the current post id right before calling authentication request. Then when user comes back to the app, you can read the saved post id and show its view.
To redirect in a popup, we could use url_launcher's webOnlyWindowName. If we set it to _blank, a new tab would be opened. Altough opening a new tab could be an workaround, we could use this to open an actual popup, or maybe file an issue requesting this feature on url_launcher.
Closing this issue as the original issue where provider sign in fails when using Flutter web with url_strategy package seems to be fixed. Please feel free to reopen this if you still encounter this issue!
Activity
phamhieu commentedon Jul 9, 2021
Hi @nomanmurtaza786, using fragment # is a gotrue design choice. You can read more details here
nomanmurtaza786 commentedon Jul 9, 2021
Actually, I am using flutter web, any guide to get a callback URL in flutter web?
nomanmurtaza786 commentedon Jul 9, 2021
I am getting this link https://sfasfsafas.supabase.co/auth/v1/verify?token=sfasfsafas&type=magiclink&redirect_to=http://localhost:5555/#/callback?
But this link get opened it doesn't go given callback URL
http://localhost:5555/#access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.safsafsafsa.safsafasfasfas-ZhaRkptXQF9hi4paapSBQ4iJvg&expires_in=3600&refresh_token=afsafsafsacxascas&token_type=bearer&type=magiclink


if there is any error it goes to right path
phamhieu commentedon Jul 14, 2021
Hi @nomanmurtaza786, if you want to use a custom redirect_to for flutter web. Please replace
#with the encoded value%23I suggest you to use default Site URL for flutter web. Check out the update example here
web-demo.mp4
nomanmurtaza786 commentedon Jul 14, 2021
Thanks, @phamhieu I will try this. but do you know how can we do the auth with popup and return back to the same screen with flutter web.
himeshp commentedon Jul 14, 2021
+1 for flutter mobile Apps.
pop up + return back,
phamhieu commentedon Jul 14, 2021
Right now
supabase-flutterdoesn't support popupnomanmurtaza786 commentedon Jul 14, 2021
@phamhieu i think it's more like flutter web guide rather than supabase. Open popup and go back when uri.base contain access token.
phamhieu commentedon Jul 14, 2021
because of security, i don't think we can do that on flutter web or event original web app.sorry, i misunderstand your question. Can you share more why you want to do it in a popup instead of a full page redirect?
himeshp commentedon Jul 14, 2021
It's a better user experience at least on the flutter mobile app, it takes out all the deep linking hassle + user is already logged in e.g. Twitter, Google, FB, etc.
nomanmurtaza786 commentedon Jul 14, 2021
yes exactly instead, full screen can we do it in the popup and go back to the same page.
dshukertjr commentedon Jul 14, 2021
Supporting pop up kind of like how Firebase Auth does it involves some additional development on the server side, so at the moment it cannot be supported, but it is definitely something we would want at some point.
@phamhieu Could we talk to the back end team about supporting this on gotrue? Not a must have, but would be great to have it somewhere along the line!
himeshp commentedon Jul 14, 2021
flutter web is still evolving, the adoption is slow, but on the other hand, it would be great to see pop-up support for flutter android & iOS apps.
nomanmurtaza786 commentedon Jul 14, 2021
@dshukertjr I think it's nothing to do with supabase it's more like a flutter web feature like I am using web view in the phone. When my url contains access token I do navigator pop and pass url back to retrieve the session. When to do same on the Web may be with dialog box it's possible.
5 remaining items
nomanmurtaza786 commentedon Jul 14, 2021
Thanks @dshukertjr yes. Can I do like that mydomain/post?id=12, mydomain/post?id=67 and so on. Or every /post?id should be there in the listing?
phamhieu commentedon Jul 14, 2021
@nomanmurtaza786 it's better to save the current post id right before calling authentication request. Then when user comes back to the app, you can read the saved post id and show its view.
spideythewebhead commentedon Jul 17, 2021
dshukertjr commentedon Jul 18, 2021
spideythewebhead commentedon Jul 18, 2021
spideythewebhead commentedon Jul 18, 2021
bdlukaa commentedon Jul 17, 2022
To redirect in a popup, we could use url_launcher's
webOnlyWindowName. If we set it to_blank, a new tab would be opened. Altough opening a new tab could be an workaround, we could use this to open an actual popup, or maybe file an issue requesting this feature onurl_launcher.cc @dshukertjr
dshukertjr commentedon Sep 30, 2022
Closing this issue as the original issue where provider sign in fails when using Flutter web with
url_strategypackage seems to be fixed. Please feel free to reopen this if you still encounter this issue!Add updated url-configuration screenshot (#352)
chore(telosnex): register 3 TLA+-derived fix branches
chore(telosnex): register 3 TLA+-derived fix branches
chore(telosnex): register 3 TLA+-derived fix branches
fix(typegen): generate a decoder for an enum named without ASCII lett…