Skip to content

Accounts Autentification

AdutP edited this page May 4, 2020 · 5 revisions

Type of accounts:

The SMA backend is composed of 2 types of accounts:

  1. General account
  2. 3rd party platform account

Endpoints for general account authentication:

Login:

POST http://sma-a4.herokuapp.com/auth/login

Form Parameters: email, password

Logout:

POST http://sma-a4.herokuapp.com/auth/logout

Removes the cookie.

Signup:

POST http://sma-a4.herokuapp.com/auth/signup

Form Parameters: name, email, password


Authentication for 3rd party platforms accounts:

GET http://sma-a4.herokuapp.com/linkedin/auth

GET http://sma-a4.herokuapp.com/twitter/auth

GET http://sma-a4.herokuapp.com/tumblr/auth