Skip to content

JWT returned by Sessions.CreateSessionTokenAsync lacks azp claim #19

Open
@jfoshee

Description

@jfoshee

When creating a Session Token using Sessions.CreateSessionTokenAsync, the JWT returned does not have an azp (authorized parties) claim.

This is likely because there is no Origin header associated with the request.

It's desirable for tokens to have the azp claim so that the application's backend can verify tokens in a consistent way.

Would it be possible to provide a way to specify the Origin as part of this request?
Or easily set common headers when constructing the ClerkBackendApi?

At this time, it seems I would need to implement ISpeakeasyHttpClient to accomplish this.

Metadata

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