Skip to content

Is it possible to create an embedded login mask? #109

Answered by ThexXTURBOXx
adrian-moisa asked this question in Q&A
Discussion options

You must be logged in to vote

That's a good question and probably a lot to unpack (and I also do not know of every good practice in this regard), so I try to keep myself as short as possible.

IIRC, in the case of Facebook, its frontend is written in PHP. So, the server is able to just render what it wants the user to see as the front page.
Internally, this could just boil down to something as simple as

if (isAuthenticated())
    show home page
else
    show login page

And actually, there is a route facebook.com/login/ which will just show you the login page, which suggests that both have a similar codeflow.

Since flutter_web_auth_2 is a Flutter package, it is a bit difficult to achieve the same in a secure way here: …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ThexXTURBOXx
Comment options

You must be logged in to vote
6 replies
@adrian-moisa
Comment options

@ThexXTURBOXx
Comment options

@adrian-moisa
Comment options

@ThexXTURBOXx
Comment options

@adrian-moisa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants