summaryrefslogtreecommitdiff
path: root/api
AgeCommit message (Collapse)Author
2024-01-29Adds an auth/authentication endpointJoe Carstairs
2024-01-29Authentication methods are single-responsibilityJoe Carstairs
2024-01-29Authenticator db functions use Uint8Array type for id, public_key fieldsJoe Carstairs
2024-01-29Refactors getFirstQueryParam to separate fileJoe Carstairs
2024-01-29Fixes api/auth/_verifyAuthenticationResponseJoe Carstairs
2024-01-29verifyRegistrationResponse is single-responsibility!Joe Carstairs
2024-01-29Fixes adding an authenticatorJoe Carstairs
2024-01-29Sets expected origin to webauthn.scotsleidassocie.org for dev environmentJoe Carstairs
2024-01-29Expected origin switch is the right way round!Joe Carstairs
2024-01-2933 / WebAuthn (#57)Joe Carstairs
* Working message on sign-up form * Disables form nicely when processing request * Updates README * Better error logging in verifyRegistrationResponse()
2024-01-29Sets expected origin correctly when verifying registration response (#56)Joe Carstairs
2024-01-29Re-spells verifyRegistrationResponse import (#55)Joe Carstairs
2024-01-29Rewrites query to set current challenge (#54)Joe Carstairs
2024-01-29Improves error logging in database queries (#53)Joe Carstairs
2024-01-29Fix syntax error in db/setCurrentChallenge (#52)Joe Carstairs
2024-01-2933 / Users can sign up and log in with WebAuthn (#39)Joe Carstairs
* Installs @vercel/postgres * Installs @simplewebauthn/server * Installs @simplewebauthn/browser * Git-ignores all files starting with .env * Reorganises folders in API * Defines User type * Defines Subscription type * Defines Authenticator type * Sets up table definition file * Can get user from database * Can add user to database * Can get user's current challenge * Can set user's current challenge * Can get user's authenticators from database * Can get authenticator by ID from database * Can add user authenticator to database * Can update authenticator in database * Defines Relying Party information * Can generate registration options * Can verify registration response * Defines registration API endpoint * Defines user API endpoint * Reorganises API functions on frontend * Can access authentication API functions on frontend * Can generate authentication options * Can verify authentication response * Documents the registration flow * Fix dev_csso * Form styling * WIP adds sign up page
2023-08-16Parameterises PayPal product detailsJoe Carstairs
2023-08-12Parses PayPal create order response with approval linkJoe Carstairs
2023-08-12Backend capture order returns 200 on successJoe Carstairs
2023-08-12PayPal capture request sends Content-Type headerJoe Carstairs
2023-08-12No more API build stepJoe Carstairs
2023-08-12Specifies CommonJS modules for API buildJoe Carstairs
2023-08-08Handles PATCHJoe Carstairs
2023-08-08Pulls out POST handlerJoe Carstairs
2023-08-08Renames createPaypalOrder -> create-paypal-orderJoe Carstairs
2023-08-08Removes logsJoe Carstairs
2023-08-08createPaypalOrder sends 201 CREATEDJoe Carstairs
2023-08-08Doesn't try-catch twiceJoe Carstairs
2023-08-07Ungitignores api build outputJoe Carstairs
2023-08-07Pre-compiles apiJoe Carstairs
2023-08-07Catches errors in createPaypalOrderJoe Carstairs
2023-08-06Defines createPaypalOrder endpointJoe Carstairs
2023-08-06Defines PayPal util logicJoe Carstairs
2023-08-06Adds env config in paypal functionJoe Carstairs
2023-08-06Defines Order typeJoe Carstairs