Skip to content

Commit

Permalink
fix: comparison of coreId auth provider
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Dec 16, 2024
1 parent 9d7fb02 commit cc5eebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/auth/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ router.post('/keepalive', async (req, res, next) => {
if (!user) throw httpError(404)

const coreIdProvider = user.coreIdProvider
if (coreIdProvider && coreIdProvider.type === 'oauth') {
if (coreIdProvider?.type === 'oauth' || coreIdProvider?.type === 'oidc') {
let provider
const site = await reqSite(req)
if (!site) {
Expand Down

0 comments on commit cc5eebd

Please sign in to comment.