Usage
The following routes are available for use by your client. These routes live relative to the path at which this engine is mounted (auth
by default). These routes correspond to the defaults used by the ng-token-auth module for AngularJS and the jToker plugin for jQuery.
path | method | purpose |
/ | POST | Email registration. Requires |
/ | DELETE | Account deletion. This route will destroy users identified by their |
/ | PUT | Account updates. This route will update an existing user's account settings. The default accepted params are |
/sign_in | POST | Email authentication. Requires |
/sign_out | DELETE | Use this route to end the user's current session. This route will invalidate the user's authentication token. You must pass in |
/:provider | GET | Set this route as the destination for client authentication. Ideally this will happen in an external window or popup. Read more. |
/:provider/callback | GET/POST | Destination for the oauth2 provider's callback uri. |
/validate_token | GET | Use this route to validate tokens on return visits to the client. Requires |
/password | POST | Use this route to send a password reset confirmation email to users that registered by email. Accepts |
/password | PUT | Use this route to change users' passwords. Requires |
/password/edit | GET | Verify user by password reset token. This route is the destination URL for password reset confirmation. This route must contain |
/confirmation | POST | Re-sends confirmation email. Requires |
Last updated