Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Error from an Auth0 action redirect POST including `state` as a query param
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [Function: httpAdapter],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, */*',
'Content-Type': 'application/json',
'User-Agent': 'axios/0.24.0',
'Content-Length': 811
},
method: 'post',
url: 'https://dev-uiqlu2cx.us.auth0.com/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
data: '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTExNzUxNzcsImlzcyI6Imh0dHBzOi8vZGV2LXVpcWx1MmN4LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiI4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eiIsImV4cCI6MTY1MTE3NjA3NywiaXAiOiI4MS4xMTAuMjI5LjE1NyIsImF1ZCI6Imh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9hY2NvdW50L3JlZ2lzdHJhdGlvbiIsInN0YXRlIjoiaEtGbzJTQXROa3gyTWkxeGNtOXNlazVIUlhCSlUwSnNWRmRHTVVsaGEwMWZkbU56T0tGdXFISmxaR2x5WldOMG8zUnBaTmtnYm1rMFZrTjNla0V5TFZWa0xXRkpaMGd4VTB0bGNEZHBTbEZpV25sVWVUT2pZMmxrMlNBNFQzSktObWxCV0dsemQxUlhTM1kzYW5SclJtVkVaMk5QY0ZOblZuaDRlZyIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy90ZXJtc19hZ3JlZWQiOiJ0cnVlIiwiaHR0cHM6Ly93ZWxsY29tZWNvbGxlY3Rpb24ub3JnL2ZpcnN0X25hbWUiOiJEYXZpZCIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9sYXN0X25hbWUiOiJNY0Nvcm1pY2sifQ.r4NrHT0wC1XVBAnzvLdMoDNEcX3aFGjL_nFjEftu6GU"}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
prefinish: [Function: requestOnPrefinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'dev-uiqlu2cx.us.auth0.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 10,
connecting: false,
_hadError: false,
_parent: null,
_host: 'dev-uiqlu2cx.us.auth0.com',
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
parser: null,
_httpMessage: [Circular *1],
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: 33362,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(kSetNoDelay)]: false,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object],
[Symbol(RequestTimeout)]: undefined
},
_header: 'POST /continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 811\r\n' +
'Host: dev-uiqlu2cx.us.auth0.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object],
requests: {},
sockets: [Object],
freeSockets: {},
keepAliveMsecs: 1000,
keepAlive: false,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: [TLSSocket],
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
headers: [Object],
rawHeaders: [Array],
trailers: {},
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 401,
statusMessage: 'Unauthorized',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://dev-uiqlu2cx.us.auth0.com/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(RequestTimeout)]: undefined
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'dev-uiqlu2cx.us.auth0.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 811,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://dev-uiqlu2cx.us.auth0.com/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
}
},
response: {
status: 401,
statusText: 'Unauthorized',
headers: {
date: 'Thu, 28 Apr 2022 19:46:51 GMT',
'content-length': '12',
connection: 'close',
'cf-ray': '70324e67bf1754be-MAN',
'cache-control': 'private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0, no-transform',
'set-cookie': [Array],
'strict-transport-security': 'max-age=31536000',
'cf-cache-status': 'DYNAMIC',
'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
'ot-baggage-auth0-request-id': '70324e67bf1754be',
'ot-tracer-sampled': 'true',
'ot-tracer-spanid': '59f3b78e3751c5aa',
'ot-tracer-traceid': '25e47b594479112a',
traceparent: '00-59f3b78e3751c5aa-000000000000000025e47b594479112a-01',
tracestate: 'auth0-request-id=70324e67bf1754be',
'x-auth0-requestid': '91d81460b2746bacd27e',
'x-content-type-options': 'nosniff',
'x-ratelimit-limit': '300',
'x-ratelimit-remaining': '299',
'x-ratelimit-reset': '1651175212',
server: 'cloudflare',
'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400'
},
config: {
transitional: [Object],
adapter: [Function: httpAdapter],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
url: 'https://dev-uiqlu2cx.us.auth0.com/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
data: '{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NTExNzUxNzcsImlzcyI6Imh0dHBzOi8vZGV2LXVpcWx1MmN4LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiI4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eiIsImV4cCI6MTY1MTE3NjA3NywiaXAiOiI4MS4xMTAuMjI5LjE1NyIsImF1ZCI6Imh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9hY2NvdW50L3JlZ2lzdHJhdGlvbiIsInN0YXRlIjoiaEtGbzJTQXROa3gyTWkxeGNtOXNlazVIUlhCSlUwSnNWRmRHTVVsaGEwMWZkbU56T0tGdXFISmxaR2x5WldOMG8zUnBaTmtnYm1rMFZrTjNla0V5TFZWa0xXRkpaMGd4VTB0bGNEZHBTbEZpV25sVWVUT2pZMmxrMlNBNFQzSktObWxCV0dsemQxUlhTM1kzYW5SclJtVkVaMk5QY0ZOblZuaDRlZyIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy90ZXJtc19hZ3JlZWQiOiJ0cnVlIiwiaHR0cHM6Ly93ZWxsY29tZWNvbGxlY3Rpb24ub3JnL2ZpcnN0X25hbWUiOiJEYXZpZCIsImh0dHBzOi8vd2VsbGNvbWVjb2xsZWN0aW9uLm9yZy9sYXN0X25hbWUiOiJNY0Nvcm1pY2sifQ.r4NrHT0wC1XVBAnzvLdMoDNEcX3aFGjL_nFjEftu6GU"}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
_header: 'POST /continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, */*\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: axios/0.24.0\r\n' +
'Content-Length: 811\r\n' +
'Host: dev-uiqlu2cx.us.auth0.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/continue?state=hKFo2SAtNkx2Mi1xcm9sek5HRXBJU0JsVFdGMUlha01fdmNzOKFuqHJlZGlyZWN0o3RpZNkgbmk0VkN3ekEyLVVkLWFJZ0gxU0tlcDdpSlFiWnlUeTOjY2lk2SA4T3JKNmlBWGlzd1RXS3Y3anRrRmVEZ2NPcFNnVnh4eg',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'dev-uiqlu2cx.us.auth0.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: 'Unauthorized'
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment