Skip to content

Commit 0841513

Browse files
committed
Remove console.logs from testing that are no longer needed.
1 parent 55c4781 commit 0841513

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

backend/src/api/app.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,6 @@ app.post('/auth/okta-callback', async (req, res) => {
179179
const clientId = process.env.REACT_APP_COGNITO_CLIENT_ID;
180180
const callbackUrl = process.env.REACT_APP_COGNITO_CALLBACK_URL;
181181
const domain = process.env.REACT_APP_COGNITO_DOMAIN;
182-
console.log('Okta ClientID: ', clientId);
183-
console.log('Okta CallbackURL: ', callbackUrl);
184-
console.log('Okta Domain: ', domain);
185182

186183
if (!code) {
187184
return res.status(400).json({ message: 'Missing authorization code' });
@@ -202,7 +199,6 @@ app.post('/auth/okta-callback', async (req, res) => {
202199
},
203200
body: tokenData
204201
});
205-
console.log('Okta token response: ', response);
206202
const { id_token, access_token, refresh_token } = await response.json();
207203

208204
if (!id_token) {
@@ -216,12 +212,6 @@ app.post('/auth/okta-callback', async (req, res) => {
216212

217213
const cognitoUsername = decodedToken['cognito:username'];
218214
const oktaId = decodedToken['custom:OKTA_ID'];
219-
console.log('Cognito Username:', cognitoUsername);
220-
console.log('Cognito OKTA_ID:', oktaId);
221-
222-
console.log('ID Token:', id_token);
223-
console.log('Decoded Token:', decodedToken);
224-
225215
jwt.verify(
226216
id_token,
227217
auth.getOktaKey,

backend/src/api/auth.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export const callback = async (event, context) => {
166166
user.loginBlockedByMaintenance = loginBlocked;
167167
user.save();
168168
}
169-
console.log(user);
170169

171170
// If user does not exist, create it
172171
if (!user) {

backend/src/api/helpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ export const sendRegistrationApprovedEmail = async (
313313
*/
314314
async function isMajorActiveMaintenance(): Promise<boolean> {
315315
const now = new Date();
316-
console.log(now);
317316
try {
318317
// DB connection
319318
await connectToDatabase();

0 commit comments

Comments
 (0)