Skip to content

Commit

Permalink
🐞 Fix: OpenID Profile Image Download (danny-avila#2757)
Browse files Browse the repository at this point in the history
* Add fetch requirement

Fixes - error: [openidStrategy] downloadImage: Error downloading image at URL "https://graph.microsoft.com/v1.0/me/photo/$value": TypeError: response.buffer is not a function

* Update openidStrategy.js

---------

Co-authored-by: Danny Avila <[email protected]>
  • Loading branch information
bsu3338 and danny-avila authored May 17, 2024
1 parent 14c0435 commit e7c9e8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/strategies/openidStrategy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const fetch = require('node-fetch');
const passport = require('passport');
const jwtDecode = require('jsonwebtoken/decode');
const { Issuer, Strategy: OpenIDStrategy } = require('openid-client');
Expand Down

0 comments on commit e7c9e8c

Please sign in to comment.