Skip to content

question: How to override default auth routing and callback action #138

@quantjin

Description

@quantjin

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions