# ClientId in Vue.js SPA

**URL:** <https://devforum.okta.com/t/clientid-in-vue-js-spa/5405>\
**Category:** Questions\
**Created:** [June 14, 2019, 1:20pm UTC](https://devforum.okta.com/t/clientid-in-vue-js-spa/5405 "2019-06-14T13:20:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ha6755ad](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@ha6755ad](https://devforum.okta.com/u/ha6755ad)\
**Post date:** [June 14, 2019, 1:20pm UTC](https://devforum.okta.com/t/clientid-in-vue-js-spa/5405/1 "2019-06-14T13:20:44Z")

</div>

I am getting an error with my clientId in the console when I run my app.

webpack-internal:///./node\_modules/@okta/okta-vue/dist/okta-vue.js:77 Uncaught Error: Your client ID is missing. You can copy it from the Okta Developer Console in the details for the Application you created. Follow these instructions to find it: [https://bit.ly/finding-okta-app-credentials](https://bit.ly/finding-okta-app-credentials)  
at new t (webpack-internal:///./node\_modules/@okta/okta-vue/dist/okta-vue.js:77)  
at i.assertClientId (webpack-internal:///./node\_modules/@okta/okta-vue/dist/okta-vue.js:77)  
at v (webpack-internal:///./node\_modules/@okta/okta-vue/dist/okta-vue.js:303)  
at Object.install (webpack-internal:///./node\_modules/@okta/okta-vue/dist/okta-vue.js:303)  
at Function.Vue.use (webpack-internal:///./node\_modules/vue/dist/vue.runtime.esm.js:5091)  
at eval (webpack-internal:///./src/router.js:23)  
at Module…/src/router.js (app.js:3878)  
at **webpack\_require** (app.js:724)  
at fn (app.js:101)  
at eval (webpack-internal:///./src/main.js:16)

I am not confused about how to find the clientId in my Okta app - I have placed it in the clientId placeholder in the config settings. I cannot track down why this error message is coming up

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [June 14, 2019, 2:11pm UTC](https://devforum.okta.com/t/clientid-in-vue-js-spa/5405/2 "2019-06-14T14:11:15Z")

</div>

Can you please post the code you’re using for your config settings?

---

<div class="post-metadata">

**Author:** ![ha6755ad](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@ha6755ad](https://devforum.okta.com/u/ha6755ad)\
**Post date:** [June 14, 2019, 2:23pm UTC](https://devforum.okta.com/t/clientid-in-vue-js-spa/5405/3 "2019-06-14T14:23:11Z")

</div>

Yes Sure. If you need more, let me know. This is the config section of my router view.

import Auth from “@okta/okta-vue”;

Vue.use(Auth, {  
clientId: “here’s where my client ID goes”,  
issuer: “[https://my](https://my) okta URL/oath2/default”,  
redirectUri: “[http://localhost:8080/implicit/callback](http://localhost:8080/implicit/callback)”,  
scope: “openid profile email”  
});

Vue.use(Router);

let router = new Router({  
mode: “history”,  
routes: [

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 17, 2024, 11:40pm UTC](https://devforum.okta.com/t/clientid-in-vue-js-spa/5405/4 "2024-01-17T23:40:10Z")

</div>

Closed on January 17, 2024, 11:40pm UTC


