Skip to content

Commit

Permalink
fix: nullable string value in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff authored May 3, 2024
1 parent 72e86a1 commit e582091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Skolengo {
public static async getOIDClient (school: School, redirectUri = 'skoapp-prod://sign-in-callback'): Promise<Client> {
const { Issuer } = await import('openid-client')

if (!school.emsOIDCWellKnownUrl) throw new TypeError('emsOIDCWellKnownUrl invalid')
if (school.emsOIDCWellKnownUrl == undefined || school.emsOIDCWellKnownUrl == null) throw new TypeError('emsOIDCWellKnownUrl invalid')

Check failure on line 220 in src/index.ts

View workflow job for this annotation

GitHub Actions / build

Expected '===' and instead saw '=='
const skolengoIssuer = await Issuer.discover(school.emsOIDCWellKnownUrl)
return new skolengoIssuer.Client({
client_id: OID_CLIENT_ID,
Expand Down

0 comments on commit e582091

Please sign in to comment.