NazWright / Staffing_Logistics_ATS

0 stars 0 forks source link

Implement API Routes for Authentication #2

Closed NazWright closed 3 years ago

NazWright commented 3 years ago

POST /api/users - create a user with passport auth local strategy GET /api/users/:userId - find a user by id GET /api/users - bulk find users GET /api/current-user - gets the current user object GET /auth/google/:role - signs up an authorized user with the Google authentication flow GET /auth/google/callback - callback from Google OAuth Flow GET /api/logout - logs user out, removes authentication PUT /api/users/:userId - update a user PUT /api/users - bulk updates users DELETE /api/users/:userId - deletes user DELETE /api/users - bulk deletes users