Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ jobs:
name: Test and lint code base
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.20.x'
- run: npm install
- run: npm run test
- run: npm run lint


- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.20.x'
- run: npm install
- run: npm run test
- run: npm run typecheck
- run: npm run lint
3 changes: 2 additions & 1 deletion server/routes/passport.routes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Router, Request, Response, NextFunction } from 'express';
import passport from 'passport';
import { UserDocument } from '../types';

const router = Router();

Expand All @@ -11,7 +12,7 @@ const authenticateOAuth = (service: string) => (
passport.authenticate(
service,
{ failureRedirect: '/login' },
(err: unknown, user: unknown) => {
(err: unknown, user: UserDocument) => {
if (err) {
// use query string param to show error;
res.redirect(`/account?error=${service}`);
Expand Down
Loading