I'm developing a front-end plugin in backstage and need the user data that already logged in.
I can get the userEntityRef that is something like user:default/guest with the useApi, identityApiRef from @backstage/core-plugin-api, but can't get the signed token that is in the backstage cookies ( or in the Authorization header of it ). How can I get it without the backend plugin apis?
Found it! It is possible using the
getCredentialsinidentityApiReffrom@backstage/core-plugin-api: