Open kiootic opened 4 years ago
remove the link in email and show only the code
This is a very weird default behaviour?
remove verification GET endpoint
This could be mitigated with a GET page that requires another click?
Instead of removing them and make the default experience so weird, actually are we using cookies on JS SDK by default? If yes maybe it is just easier if we provide a default URL that respects the cookies, show a button for a click to verify the code, and redirect users to error page if not logged in (or even better, create a redirect URL setting for where to redirect if logged in is needed)
Then the default experience is more complete...
For users use auth token, we shall explain in our guides and user portal that the link doesn't work for auth token and they should implement the URL on their own (assuming auth token is not the default option, so people switched it knows what they're doing?)
That seems way better than removing the whole thing...
BTW, for big feature changes... please put it on feature repo instead of in individual repo so it would update our spec and I don't look at every issues here (it just happen we discussed this today so...)
The team had discussed on that, and we think that:
For reference, here's some problems we need to address if we want to keep a complete default flow:
The problem is the current way we propose to just send an email with verification code, is very half-baked and make the whole experience very incomplete for both type of developers: Developers who don't want to customize the UX or developers who want to.
I'm thinking maybe the best way to move forward is to just leave this feature as-is, aka, we don't care if the GET request has a side-effect, and also don't care if verify the code without auth is a problem (yea I know I'm the one who question this in the first place).
So at least we have a "basic flow" that Marketing team can do the demo first, and don't look dumb as if a basic feature of verification by email is not even there.
Than we can come back and fix this later.
So here is what I would propose:
I think we need this trade-off to make Skygear Auth demo-able after 2.0 launch.
Currently, the verification email includes a link, which mark the user as verified when opened. This is problematic for security reasons:
Therefore, to support a secure verification page, we need to require manual action & authentication before verification. However, due to complex login behaviors & methods, and the use of header session transport, it is impractical to implement a generic login page at the moment.
For now, we'll mitigate the existing problem by: