Skip to content

Webtoken and cookie session value generated through typescript code is not valid #6463

@bisingh-mdsol

Description

@bisingh-mdsol

Describe the issue

Hi Team,

Please consider below code:

import { MWAAClient, CreateWebLoginTokenCommand } from '@aws-sdk/client-mwaa'
const mwaaClient = new MWAAClient({ region })
const loginTokenCommand = new CreateWebLoginTokenCommand({ Name: envName })
const response = await mwaaClient.send(loginTokenCommand)
const webServerHostName = response.WebServerHostname

const webToken = response.WebToken

In the above code, the web token we are getting is not valid for my application in typescript,
but when I am using the Python code, it works fine for my application.

Please advice.

Links

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/mwaa/command/CreateWebLoginTokenCommand/

Metadata

Metadata

Assignees

Labels

closed-for-stalenessdocumentationThis is a problem with documentation.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions