cancel
Showing results for 
Search instead for 
Did you mean: 

Use jwt-decode module on SAP UI5 Module

former_member664593
Participant
0 Kudos
874

Hi experts.

I have an MTA project with a UI5 Module, I need to get what user made login with Identity Authentication Service(IAS). My partner used jwt-decode and this I installed it on my Node JS module but when I try to call to my function "getUserInformation" I get error 404.

Also on my package.json I call my function:

"scripts": {
  "start": "node userinformation",
  "build": "ui5 build --clean-dest --include-task=generateManifestBundle generateCachebusterInfo"
  },

And "userinformation" it's my script with my function "getUserInformation".

Please, can you help me?

Accepted Solutions (0)

Answers (1)

Answers (1)

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Hi Jimmy,

I guess that there are a couple of things not set up correctly in the project that you mentioned above and it's probably too hard to fix all issue remotely now. I would therefore suggest that you check out this sample application here and compare your code to this app.

You could step-by-step modify the working example and replace this default approuter with your extended one and then replace the web app with your web app.

Btw: I also recommend to switch from Web IDE to another IDE such as the SAP Business Application Studio (if possible)