Avanza Tools
API reference

Authentication API

TOTP, BankID, and session methods and options.

Use client.auth for login and session lifecycle operations. For setup steps, credentials, and a BankID polling example, read the authentication guide.

Auth client

Prop

Type

TOTP options

Choose either a six-digit totpCode or a base32 totpSecret (never both). Both modes accept maxInactiveMinutes for the requested inactivity timeout.

Prop

Type

Prop

Type

BankID challenge

The QR payload must be rendered again after each pending poll. See the BankID attempt API for the complete signatures.

Prop

Type

On this page