Sample Code to read JWT token.
It contains these folders and files, following our recommended project layout:
| File or Folder | Purpose |
|---|---|
app/ |
content for approuter goes here |
db/ |
your domain models and data go here |
srv/ |
your service models and code go here |
package.json |
project metadata and configuration |
readme.md |
this getting started guide |
| Branch Name | Purpose | Output |
|---|---|---|
without-uaa |
App without XSUAA service | JWT token is undefined |
with-uaa |
App with XSUAA service but without Approuter | JWT token is undefined |
with-approuter |
App with XSUAA service and Approuter | JWT token is defined |
- Open a new terminal and run
cds watch - (in VS Code simply choose Terminal > Run Task > cds watch)
Learn more at https://cap.cloud.sap/docs/get-started/.