aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/auth.ts (follow)
Commit message (Collapse)AuthorAgeLines
* Opens OAuth In New TabGravatar Hassan Abouelela2021-03-08-2/+1
| | | | | | | Removes the window features from the OAuth window to make it open in a new tab if the client prefers. Signed-off-by: Hassan Abouelela <[email protected]>
* Renables OAuth Button On FailureGravatar Hassan Abouelela2021-03-07-2/+3
| | | | | | | Allows the Discord OAuth button to be renabled in case the window is closed prematurely. Signed-off-by: Hassan Abouelela <[email protected]>
* Revert "Removes Unused OAuth Cleaning"Gravatar Hassan Abouelela2021-03-07-0/+9
| | | | | | This reverts commit 7e0d4a9f Signed-off-by: Hassan Abouelela <[email protected]>
* Removes Unused OAuth CleaningGravatar Hassan Abouelela2021-03-07-9/+0
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Remove Unused OAuth ScopesGravatar Hassan Abouelela2021-03-07-18/+1
| | | Co-authored-by: Joe Banks <[email protected]>
* Set Username Expiry To PermanentGravatar Hassan Abouelela2021-03-06-2/+2
| | | | | | | Extends username expiry to a very far date, to prevent it from expiring on session. Signed-off-by: Hassan Abouelela <[email protected]>
* Saves Username & Scopes On `/` PathGravatar Hassan Abouelela2021-02-21-2/+2
| | | | | | | | Explicitly sets the path attribute of username and scope cookies, to ensure they work correctly across page transitions, and to match the actual authorization cookie. Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Token RefreshGravatar Hassan Abouelela2021-02-20-31/+53
| | | | | | Adds automatic token refresh, and removes manual setting of JWT. Signed-off-by: Hassan Abouelela <[email protected]>
* Removes Path From AuthGravatar Hassan Abouelela2021-02-17-12/+11
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Error Handling To Auth HelpersGravatar Hassan Abouelela2021-02-16-18/+57
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Makes Authorize Helper AsyncGravatar Hassan Abouelela2021-02-13-3/+5
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Basic Auth FunctionalityGravatar Hassan Abouelela2021-02-13-0/+208
Moves all authorization functionality to a new file, and adds a helper to send discord OAuth code to the backend, and set JWT. Adds a library to read and set cookies. Signed-off-by: Hassan Abouelela <[email protected]>