# \#nodejs

**URL:** https://devforum.okta.com/tag/nodejs/5.md

[Latest](https://devforum.okta.com/latest.md) · [Categories](https://devforum.okta.com/categories.md) · [Tags](https://devforum.okta.com/tags.md)

---

## [Enabling /default/ routing for Applications](https://devforum.okta.com/t/enabling-default-routing-for-applications/34558)

<div class="topic-metadata">

**Author:** [@RLoveless](https://devforum.okta.com/u/RLoveless)\
**Replies:** 0\
**Last updated:** [November 4, 2025, 9:40pm UTC](https://devforum.okta.com/t/enabling-default-routing-for-applications/34558 "2025-11-04T21:40:37Z")

</div>

We are using Passport’s OIDC Connect to connect to Okta with the following configuration: const issuer = \`https://${oktaDomain}/oauth2/default\`; const callbackURL = \`https://${hostname}/auth/openid/login/\`; const str…

---

## [Custom claim for User Provider type](https://devforum.okta.com/t/custom-claim-for-user-provider-type/34325)

<div class="topic-metadata">

**Author:** [@markmark](https://devforum.okta.com/u/markmark)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 9:59am UTC](https://devforum.okta.com/t/custom-claim-for-user-provider-type/34325 "2025-09-19T09:59:59Z")

</div>

Is it possible to configure a custom claim on an access token such that the users provider type can be added? Something like the below? isFederated: user.providerType eq “FEDERATION” I am aware ID tokens have th…

---

## [Working with ExpressOIDC with proxy via nodejs](https://devforum.okta.com/t/working-with-expressoidc-with-proxy-via-nodejs/34317)

<div class="topic-metadata">

**Author:** [@sensecherise](https://devforum.okta.com/u/sensecherise)\
**Replies:** 0\
**Last updated:** [September 16, 2025, 9:05am UTC](https://devforum.okta.com/t/working-with-expressoidc-with-proxy-via-nodejs/34317 "2025-09-16T09:05:30Z")

</div>

Hi, i have been read documentation at @okta/oidc-middleware - npm and currently using v5.5.0 I got a problem that when i tried to use ExpressOIDC middleware with proxy such as http-proxy, http-proxy-agent and tried wor…

---

## [Presenting MFA Challenges within Okta](https://devforum.okta.com/t/presenting-mfa-challenges-within-okta/34031)

<div class="topic-metadata">

**Author:** [@markmark](https://devforum.okta.com/u/markmark)\
**Replies:** 2\
**Last updated:** [July 28, 2025, 7:35pm UTC](https://devforum.okta.com/t/presenting-mfa-challenges-within-okta/34031 "2025-07-28T19:35:17Z")

</div>

Hi team, Are there any endpoints exposed for initiating an MFA challenge? Suppose a custom SPA integrated with Okta APIs but rendered its own UI. Would we be able to initiate MFA challenges (Okta Verify, etc) within ou…

---

## [Step-up Invocation not happening](https://devforum.okta.com/t/step-up-invocation-not-happening/31119)

<div class="topic-metadata">

**Author:** [@pawan.venugopal](https://devforum.okta.com/u/pawan.venugopal)\
**Replies:** 0\
**Last updated:** [November 6, 2024, 6:41am UTC](https://devforum.okta.com/t/step-up-invocation-not-happening/31119 "2024-11-06T06:41:13Z")

</div>

I am using the redirect model to have user to login via okta. As part of the the login process, the user enters login credentials and ask for 2FA using okta verify. Once the user successfully logged in have an authentica…

---

## [Trying to pull user groups listUserGroupsout with okta-sdk-nodejs](https://devforum.okta.com/t/trying-to-pull-user-groups-listusergroupsout-with-okta-sdk-nodejs/25825)

<div class="topic-metadata">

**Author:** [@tierneynr](https://devforum.okta.com/u/tierneynr)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 9:14am UTC](https://devforum.okta.com/t/trying-to-pull-user-groups-listusergroupsout-with-okta-sdk-nodejs/25825 "2024-07-31T09:14:15Z")

</div>

I’m using the okta-sdk-nodejs package to try to get user groups by userId. client has scopes of okta.users.read. Calling this client.userApi.listUserGroups({ userId }); this doesn’t seem to be returning anything. cli…

---

## [Error: The response type is not supported by the authorization server. Configured response types: \[code\]](https://devforum.okta.com/t/error-the-response-type-is-not-supported-by-the-authorization-server-configured-response-types-code/28986)

<div class="topic-metadata">

**Author:** [@aidand](https://devforum.okta.com/u/aidand)\
**Replies:** 2\
**Last updated:** [July 5, 2024, 3:17pm UTC](https://devforum.okta.com/t/error-the-response-type-is-not-supported-by-the-authorization-server-configured-response-types-code/28986 "2024-07-05T15:17:16Z")

</div>

Hi All, I have seen some posts relating to this but the suggested fix’s are not working for me. I am implementing Okta Web application with server-side authentication. The server is set up using express. I am getting t…

---

## [While trying to use @okta/okta-sdk-nodejs i get an error for invalid character in JSON](https://devforum.okta.com/t/while-trying-to-use-okta-okta-sdk-nodejs-i-get-an-error-for-invalid-character-in-json/28474)

<div class="topic-metadata">

**Author:** [@eyal.ringwald](https://devforum.okta.com/u/eyal.ringwald)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 7:59am UTC](https://devforum.okta.com/t/while-trying-to-use-okta-okta-sdk-nodejs-i-get-an-error-for-invalid-character-in-json/28474 "2024-05-28T07:59:49Z")

</div>

i am using the @okta/okta-sdk-nodejs , set the client according to documentation : const client = new okta.Client({ orgUrl: ‘’, authorizationMode: ‘PrivateKey’, clientId: '. ', scopes: \[‘okta.users.read’\], privateK…

---

## [Next auth with OKTA PKCE flow](https://devforum.okta.com/t/next-auth-with-okta-pkce-flow/26312)

<div class="topic-metadata">

**Author:** [@bekim](https://devforum.okta.com/u/bekim)\
**Replies:** 5\
**Last updated:** [January 11, 2024, 8:16pm UTC](https://devforum.okta.com/t/next-auth-with-okta-pkce-flow/26312 "2024-01-11T20:16:18Z")

</div>

Hi! I’ve been stuck on implementing the Okta provider for next-auth for awhile, and according to the documentation, the flow should kind of look like (1) /authorize call with the correct client credentials and code\_chall…

---

## [loginCallback handler method is entering to loop](https://devforum.okta.com/t/logincallback-handler-method-is-entering-to-loop/27242)

<div class="topic-metadata">

**Author:** [@sai12](https://devforum.okta.com/u/sai12)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 5:25pm UTC](https://devforum.okta.com/t/logincallback-handler-method-is-entering-to-loop/27242 "2024-03-20T17:25:44Z")

</div>

In @okta/oidc-middleware, callback redirection is not working as expected. Its never reaching afterCallback url since the callback handler method is entering infinite loop. Can someone help me with the issue? const oid…

---

## [How to dynamically set callbackURL with Passport JS?](https://devforum.okta.com/t/how-to-dynamically-set-callbackurl-with-passport-js/27141)

<div class="topic-metadata">

**Author:** [@RLoveless](https://devforum.okta.com/u/RLoveless)\
**Replies:** 2\
**Last updated:** [March 19, 2024, 1:57pm UTC](https://devforum.okta.com/t/how-to-dynamically-set-callbackurl-with-passport-js/27141 "2024-03-19T13:57:18Z")

</div>

I am using Passpot-openidconnect with our Okta application, following this guide. As we’re extending this project, we’re looking to have this Auth system work across several domains (ie, I can log in via Okta on either f…

---

## [Social sign in from a custom page](https://devforum.okta.com/t/social-sign-in-from-a-custom-page/26944)

<div class="topic-metadata">

**Author:** [@figandbones](https://devforum.okta.com/u/figandbones)\
**Replies:** 1\
**Last updated:** [February 27, 2024, 8:12pm UTC](https://devforum.okta.com/t/social-sign-in-from-a-custom-page/26944 "2024-02-27T20:12:35Z")

</div>

I am using the okta-auth-js package and Okta Identity Engine and creating our in-house sign-up page, including social sign in buttons. I’m trying to get the social sign in buttons to work to sign up the user. I followed …

---

## [Problem sharing the AccessToken between Node and Vue](https://devforum.okta.com/t/problem-sharing-the-accesstoken-between-node-and-vue/1819)

<div class="topic-metadata">

**Author:** [@compare3D](https://devforum.okta.com/u/compare3D)\
**Replies:** 0\
**Last updated:** [May 19, 2018, 6:22pm UTC](https://devforum.okta.com/t/problem-sharing-the-accesstoken-between-node-and-vue/1819 "2018-05-19T18:22:25Z")

</div>

Hi, i’m totally new to Okta and the workflow is quite nice. At the moment I’m building a CRUD Rest App with Vue and NodeJS. The login system with Okta works perfectly, but when i try to secure the API with the Access …

---

## [Handle new user from Okta Sign-In Page in Node.js](https://devforum.okta.com/t/handle-new-user-from-okta-sign-in-page-in-node-js/1748)

<div class="topic-metadata">

**Author:** [@leo.z](https://devforum.okta.com/u/leo.z)\
**Replies:** 0\
**Last updated:** [May 8, 2018, 3:27am UTC](https://devforum.okta.com/t/handle-new-user-from-okta-sign-in-page-in-node-js/1748 "2018-05-08T03:27:37Z")

</div>

Hello, I’m trying to integrate my application with Okta, by using Okta Sign-In Page on Node.js with oidc-middleware. However, I have encountered a problem probably due to the way oidc-middleware handles session and I’m …

---

## [Node okta client not terminating?](https://devforum.okta.com/t/node-okta-client-not-terminating/1289)

<div class="topic-metadata">

**Author:** [@devlinse](https://devforum.okta.com/u/devlinse)\
**Replies:** 0\
**Last updated:** [February 22, 2018, 11:37am UTC](https://devforum.okta.com/t/node-okta-client-not-terminating/1289 "2018-02-22T11:37:30Z")

</div>

Hi folks. Firstly, this is probably my general understanding of node here. I’ve extensive experience of the raw API via curl not node. I’m finding that in even the simplest example, when invoking the okta node-js clien…

---

## [ExpressOIDC expressjs signout not working](https://devforum.okta.com/t/expressoidc-expressjs-signout-not-working/26020)

<div class="topic-metadata">

**Author:** [@surya12](https://devforum.okta.com/u/surya12)\
**Replies:** 1\
**Last updated:** [December 6, 2023, 5:02pm UTC](https://devforum.okta.com/t/expressoidc-expressjs-signout-not-working/26020 "2023-12-06T17:02:40Z")

</div>

Hi, In root app.js file I have written code like - const { ExpressOIDC } = require(“@okta/oidc-middleware”); let oidc = new ExpressOIDC({ issuer: process.env.ISSUER, client\_id: process.env.CLIENT\_ID, client\_secret:…

---

## [Session Cookie 101](https://devforum.okta.com/t/session-cookie-101/1309)

<div class="topic-metadata">

**Author:** [@RayRenteria](https://devforum.okta.com/u/RayRenteria)\
**Replies:** 6\
**Last updated:** [July 26, 2023, 4:08pm UTC](https://devforum.okta.com/t/session-cookie-101/1309 "2023-07-26T16:08:57Z")

</div>

Hello, I’ve established a basic token based authentication workflow but I want to switch to a session-based workflow using cookies so that my client doesn’t have to keep stuffing a bearer token in each request. I’m usi…

---

## [Okta API- Resource owner password flow /token](https://devforum.okta.com/t/okta-api-resource-owner-password-flow-token/1656)

<div class="topic-metadata">

**Author:** [@ahmed](https://devforum.okta.com/u/ahmed)\
**Replies:** 9\
**Last updated:** [April 14, 2023, 9:21pm UTC](https://devforum.okta.com/t/okta-api-resource-owner-password-flow-token/1656 "2023-04-14T21:21:31Z")

</div>

Hi, I am trying to implement username password login on the defualt authorization server and get a token with /token endpoint. however i get this Error : Bad request. Accept and/or Content-Type headers likely do not mat…

---

## [Specify redirectURI in getWithRedirect() Okta-auth-js library](https://devforum.okta.com/t/specify-redirecturi-in-getwithredirect-okta-auth-js-library/23313)

<div class="topic-metadata">

**Author:** [@sseekamp](https://devforum.okta.com/u/sseekamp)\
**Replies:** 3\
**Last updated:** [February 27, 2023, 10:11pm UTC](https://devforum.okta.com/t/specify-redirecturi-in-getwithredirect-okta-auth-js-library/23313 "2023-02-27T22:11:47Z")

</div>

What I want to accomplish: A user signs into my app and lands on an authenticated page. I need to call various vendor specific authorization servers and apps (web app with client secret) from the UI to retrieve an auth…

---

## [OKTA Rate Limit Solution?](https://devforum.okta.com/t/okta-rate-limit-solution/21874)

<div class="topic-metadata">

**Author:** [@samadhassan](https://devforum.okta.com/u/samadhassan)\
**Replies:** 0\
**Last updated:** [September 14, 2022, 12:08pm UTC](https://devforum.okta.com/t/okta-rate-limit-solution/21874 "2022-09-14T12:08:56Z")

</div>

Hi! I am consuming okta organization API using the below okta SDK for nodejs. I have many groups. Each group has 100 users. When I tried to get groups and their users, i always got a notification email which states th…

---

## [Error while resolving signing key for kid due to /undefined/v1/keys jwks error](https://devforum.okta.com/t/error-while-resolving-signing-key-for-kid-due-to-undefined-v1-keys-jwks-error/3783)

<div class="topic-metadata">

**Author:** [@gstclair](https://devforum.okta.com/u/gstclair)\
**Replies:** 0\
**Last updated:** [December 31, 2018, 10:43pm UTC](https://devforum.okta.com/t/error-while-resolving-signing-key-for-kid-due-to-undefined-v1-keys-jwks-error/3783 "2018-12-31T22:43:20Z")

</div>

I am following the example here: Secure a Node API with OAuth 2.0 Client Credentials | Okta Developer When I attempt to access a protected resource I get an error: “Error while resolving signing key for kid…” with an in…

---

## [Create All factors type when user creation](https://devforum.okta.com/t/create-all-factors-type-when-user-creation/16410)

<div class="topic-metadata">

**Author:** [@jaykumar](https://devforum.okta.com/u/jaykumar)\
**Replies:** 0\
**Last updated:** [September 30, 2021, 5:25pm UTC](https://devforum.okta.com/t/create-all-factors-type-when-user-creation/16410 "2021-09-30T17:25:58Z")

</div>

I want to create all factor type when after user creation. When user wants to enable all factors at the same - in this case I unable to find any API

---

## [Node js saml okta configuration](https://devforum.okta.com/t/node-js-saml-okta-configuration/1787)

<div class="topic-metadata">

**Author:** [@rlg](https://devforum.okta.com/u/rlg)\
**Replies:** 1\
**Last updated:** [February 9, 2022, 1:30pm UTC](https://devforum.okta.com/t/node-js-saml-okta-configuration/1787 "2022-02-09T13:30:32Z")

</div>

trying to configure my node js server to auth users using saml. using passport and passport-saml strategy and i dont understand how to validate a response from the IDP at the SP side. when doing the flow without a cert…

---

## [Getting premature end of file error when creating key](https://devforum.okta.com/t/getting-premature-end-of-file-error-when-creating-key/17577)

<div class="topic-metadata">

**Author:** [@abroadhurst](https://devforum.okta.com/u/abroadhurst)\
**Replies:** 2\
**Last updated:** [October 27, 2021, 2:37pm UTC](https://devforum.okta.com/t/getting-premature-end-of-file-error-when-creating-key/17577 "2021-10-27T14:37:44Z")

</div>

I’m attempting to connect to a service app in Okta using the sdk. To connect to the service app, I’m creating a JWT for authentication however I’m having a lot of trouble when using it for authentication. If I use the P…

---

## [@okta/okta-sdk-nodejs Unhandled Promise Rejection Warning being thrown](https://devforum.okta.com/t/okta-okta-sdk-nodejs-unhandled-promise-rejection-warning-being-thrown/16723)

<div class="topic-metadata">

**Author:** [@abroadhurst](https://devforum.okta.com/u/abroadhurst)\
**Replies:** 1\
**Last updated:** [October 26, 2021, 10:19am UTC](https://devforum.okta.com/t/okta-okta-sdk-nodejs-unhandled-promise-rejection-warning-being-thrown/16723 "2021-10-26T10:19:10Z")

</div>

using GitHub - okta/okta-sdk-nodejs: Node.js API Client for the Okta Platform API I’m getting an UnhandledPromiseRejectionWarning, why is this being cause and how can I avoid it? const client = new okta.Client({ orgUr…

---

## [After authentication user email otp is not getting to register email](https://devforum.okta.com/t/after-authentication-user-email-otp-is-not-getting-to-register-email/16404)

<div class="topic-metadata">

**Author:** [@jaykumar](https://devforum.okta.com/u/jaykumar)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 5:21pm UTC](https://devforum.okta.com/t/after-authentication-user-email-otp-is-not-getting-to-register-email/16404 "2021-09-30T17:21:37Z")

</div>

I implemented Okta API. Enroll email otp confirmation mail is triggering when again user logging in email otp is not triggering. the same is happening for sms authentication.

---

## [Heroku Deployment Error: Your Okta URL must start with https. Current value: 'https://dev-05782542.okta.com/oauth2/default'](https://devforum.okta.com/t/heroku-deployment-error-your-okta-url-must-start-with-https-current-value-https-dev-05782542-okta-com-oauth2-default/16248)

<div class="topic-metadata">

**Author:** [@Shardul](https://devforum.okta.com/u/Shardul)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 3:15pm UTC](https://devforum.okta.com/t/heroku-deployment-error-your-okta-url-must-start-with-https-current-value-https-dev-05782542-okta-com-oauth2-default/16248 "2021-09-21T15:15:57Z")

</div>

Hi Team, We are deploying our ExpressJS API on Heroku platform. Our application has separate .env file to set application related environment variables. While deployment we are facing following issue- Error: Your Okta …

---

## [I Want enable MFA in my application with All FactorType](https://devforum.okta.com/t/i-want-enable-mfa-in-my-application-with-all-factortype/16206)

<div class="topic-metadata">

**Author:** [@jaykumar](https://devforum.okta.com/u/jaykumar)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 10:02pm UTC](https://devforum.okta.com/t/i-want-enable-mfa-in-my-application-with-all-factortype/16206 "2021-09-17T22:02:46Z")

</div>

I want Implement MFA in my banking application. Once customer login in using our database credential. We have user account page where user can setup OKTA MFA, but I have no clue how to achieve this using Okta API. …

---

## [How to see a user's groups](https://devforum.okta.com/t/how-to-see-a-users-groups/15860)

<div class="topic-metadata">

**Author:** [@vam](https://devforum.okta.com/u/vam)\
**Replies:** 4\
**Last updated:** [September 1, 2021, 6:12pm UTC](https://devforum.okta.com/t/how-to-see-a-users-groups/15860 "2021-09-01T18:12:39Z")

</div>

I’ve set up Okta authentication using a dev account for a simple nodejs / express app. I’m trying to determine which groups the user belongs to without success. I’m new to Okta and only have a little experience with usin…

---

## [Okta OIDC Middleware JS: How to sign in a user without embedding the Okta login](https://devforum.okta.com/t/okta-oidc-middleware-js-how-to-sign-in-a-user-without-embedding-the-okta-login/15693)

<div class="topic-metadata">

**Author:** [@abroadhurst](https://devforum.okta.com/u/abroadhurst)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 9:46pm UTC](https://devforum.okta.com/t/okta-oidc-middleware-js-how-to-sign-in-a-user-without-embedding-the-okta-login/15693 "2021-08-25T21:46:08Z")

</div>

Is it possible to use the OIDC middleware to create a custom login page without including an embedded Okta login page?

[Next page](https://devforum.okta.com/tag/nodejs/5.md?match_all_tags=true&page=1&tags%5B%5D=nodejs)
