The authentication micro-service for switchblade micro-services
-
/authorize
- Authentication pop-up: accepts whitelisted callbacks url -
/callback
- Callback: Redirected from discord oauth, redirect to last callback with switchblade token -
/api/check
- Authorization check: Checks if the authorization is correct and returns auth status (id, access token, etc) -
/api/refresh
- Authorization refresh; Receives a switchblade token and returns a new sb token with new accessToken -
/api/@me
- Discord authorization test; Returns simple information about the user for testing purposes (or not)
-
HTTPS only (cloudflare can redirect HTTP to HTTPS)
-
ENCODE ALL ACCESS_TOKEN BECAUSE THEY DONT NEED ANYTHING ELSE TO WORK