Skip to main content
import { getAuthSessionParameters } from '@intuned/runtime';

async function getAuthSessionParameters(): Promise<any>
Returns the parameters used to create the current AuthSession. Use this to access credentials or configuration values that were provided when the AuthSession was created. This function only works with Credentials-based AuthSessions. It allows your automation to access the original parameters (like usernames, API keys, or other identifiers) without hardcoding them. Returns Returns Promise<any> — The parameters object used to create the AuthSession. Throws
  • Error — Thrown if the project doesn’t use AuthSessions.
  • Error — Thrown if the AuthSession is Recorder-based (not Credentials-based).
  • Error — Thrown if the AuthSession is Runtime-based.
  • AuthSessions — Learn about authentication session management.