Finished the back end
First you may be reading this without knowing the context so you may ask:
What is this project
This project involves turning my portfolio into a full own “personal company” by adding oauth and other features
What did i do
I think it is in the title that i finished the backend but if you keep asking i added all of this to my backend
-
Register (POST /api/auth/register)
-
Login (POST /api/auth/login)
-
2FA Login (POST /api/auth/login-2fa)
-
Logout (POST /api/auth/logout)
-
Get current user profile (GET /api/auth/me)
-
Change password with 2FA check (POST /api/user/change-password)
-
Upload avatar with webp conversion and sharp resizing (POST /api/user/avatar)
-
Create oauth app (POST /api/oauth/apps)
-
Get my oauth apps (GET /api/oauth/apps)
-
Get authorized oauth apps (GET /api/oauth/authorized-apps)
-
Revoke oauth app authorization (DELETE /api/oauth/authorized-apps/:client_id)
-
2FA setup and qr generator (POST /api/user/2fa/setup)
-
2FA verify and activate (POST /api/user/2fa/verify)
-
2FA disable (POST /api/user/2fa/disable)
-
Toggle 2FA required on login (POST /api/user/2fa/toggle-login)
-
OAuth authorize endpoint (GET /oauth/authorize)
-
OAuth consent endpoint (POST /oauth/consent)
-
OAuth token exchange endpoint (POST /oauth/token)
-
OAuth userinfo endpoint (GET /api/userinfo)
So yeah thats it also forgot to add hackclub as a login method ill do that later
So thanks for reading (;
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.