Skip to content

Commit

Permalink
Change decoding package
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkim3 committed Dec 7, 2023
1 parent 7fb6148 commit 429c6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {jwtDecode} from "jwt-decode"; // JWT decoder
const jwt = require("jsonwebtoken"); // JWT decoding API
const mssql = require("mssql"); // Azure connector API
const express = require("express"); // Express API

Expand Down Expand Up @@ -424,7 +424,7 @@ app.delete("/api/admins/delete", async (req, res) => {
app.post("/api/login/oauth", async (req, res) => {
try {
// Decode the Google ID token
const decodedToken = jwtDecode(req.body.token);
const decodedToken = jwt.decode(req.body.token);

// Verify hd (hosted domain) is umsystem.edu, missouri.edu, umsl.edu, umkc.edu, or mst.edu
if (
Expand Down

0 comments on commit 429c6c8

Please sign in to comment.