How to Work with Angular and MySQL

brian ashley

Can you help me with a basic hurdle. I entered an incorrect token at Okta login. I can’t correct the error. Neither can I raise a case with Okta support. I can’t get past the app create step because of this incorrect token. I can’t initiate another login. The reply is Okta org is already configured, even after rebooting PC.
Call me dumb but have no idea how to fix this.

Matt Raible

If you’re using the Okta CLI, just delete the ~/.okta/okta.yaml file, or edit it and correct the token value.

brian ashley

Thanks heaps Matt. Yeah, deleting the .yaml file was the way to go.
Do you have a link to a how-to showing how I run the demo angular app created at the okta?
And, on the matter of the package.json updated with the “npm install --save-exact-express-bearer-token…”, I ran this from my user directory, but later from the /projectdirectory/src where it updated the .json. But the first time I ran it, I think it created a package-lock.json. Does that make sense?

Matt Raible

Here’s a blog post that should help:

https://developer.okta.com/…

If it generated a package.json, package-lock.json, or node_modules directory in your home directory, it’s OK to delete them.

Ale

hi, thank you in advance for the reply.
Ihave this error after command line: node src/index.js:
<throw err;="" ^="" error:="" cannot="" find="" module="" ‘.="" events’="" at="" function.module._resolvefilename="" (internal="" modules="" cjs="" loader.js:636:15)="" at="" function.module._load="" (internal="" modules="" cjs="" loader.js:562:25)="" at="" module.require="" (internal="" modules="" cjs="" loader.js:692:17)="" at="" require="" (internal="" modules="" cjs="" helpers.js:25:18)="" at="" object.<anonymous=""> (/home/developer/Documenti/timeline-server/src/index.js:5:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
[developer@localhost timeline-server]$ node src/index.js
internal/modules/cjs/loader.js:638
throw err;>
can you help me?

Ale

ok, I solved my errror…

I had absent-mindedly created a sub-folder src where I inserted event.js.
now Express server listening on port 8080.
Thanks