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
Hello, I'm testing sails-auth 2.1.3 with sails 0.12.1
I used /auth/google or other social auth to authorize session, when session is authorized, the default callback is to display the current user record in json format.
How do I change callback so that after authorization it redirects to some url like /?
Also, some url like /login, /register is used by sails-auth, I want to use sails url slug /:account for user profile, but this would have conflict with /login etc.
How do I change the url used by sails-auth to like /auth/login, /auth/register?
Thanks!
The text was updated successfully, but these errors were encountered:
Did anyone figure this out? Specifically the callback. Right now, when I POST /register, I am redirected to res.ok(user) [see UserController]. Is there a way of overriding this so that we can redirect to a page?
I, in turn, would need this in order to add another verification step — I don't have a better idea on how to check if passport authenticated my user, but additionally let me check if the user is active, etc.
Hello, I'm testing sails-auth
2.1.3
with sails0.12.1
I used
/auth/google
or other social auth to authorize session, when session is authorized, the default callback is to display the current user record in json format.How do I change callback so that after authorization it redirects to some url like
/
?Also, some url like
/login
,/register
is used by sails-auth, I want to use sails url slug/:account
for user profile, but this would have conflict with/login
etc.How do I change the url used by sails-auth to like
/auth/login
,/auth/register
?Thanks!
The text was updated successfully, but these errors were encountered: