feat(frontend): Added functionality to the frontend to log in.
This commit is contained in:
parent
4a1edbb6ff
commit
a28ec22f29
20 changed files with 395 additions and 33 deletions
|
@ -58,7 +58,6 @@ const verifyJwtToken = expressjwt({
|
|||
* Get an object with information about the authenticated user from a given authenticated request.
|
||||
*/
|
||||
function getAuthenticationInfo(req: AuthenticatedRequest): AuthenticationInfo | undefined {
|
||||
console.log("hi");
|
||||
if (!req.jwtPayload) {
|
||||
return;
|
||||
}
|
||||
|
|
6
backend/src/middleware/cors.ts
Normal file
6
backend/src/middleware/cors.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import cors from "cors";
|
||||
import {EnvVars, getEnvVar} from "../util/envvars";
|
||||
|
||||
export default cors({
|
||||
origin: getEnvVar(EnvVars.CorsAllowedOrigins).split(',')
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue