Skip to content

Question: How do I extract data from a decoded JWT - in an example? #56

Closed
@joerg-walter-de

Description

I find this documentation

https://httpyac.github.io/guide/metaData.html#jwt

but wasn't able to make this work. Ho do I access the decoded data.

I have tried this:

###
# @name getTestAccountViaAccessToken
# @forceRef createAccessToken
# @no-cookie-jar
GET http://localhost:3000/v1/accounts/persons/{{createAccessToken.accessToken_parsed.accountId}}
Authorization: Bearer {{createAccessToken.accessToken}}

While {{createAccessToken.accessToken}} yields the retrieved token {{createAccessToken.accessToken_parsed.accountId}} fails although I am seeing accessToken_parsed and accessToken_parsed.accountId in the result window of createAccessToken.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions