PDF Web SDK Documentation

Comprehensive Guide for Developers: UI & SDK Integration, Configuration, and API Reference

PDF Web SDK
    Preparing search index...

    Interface ISessionTokens

    The session's tokens, as the identity provider issued them.

    Both halves travel together because a host that has to trade this session for a token of its OWN — an API that does not accept the IdP's access token directly, and mints its own from a grant — needs the pair, not just the access token: the grant identifies the session with accessToken and takes over renewing it with refreshToken. Handing out only the access token forced such a host to read the refresh token out of this library's storage behind its back.

    interface ISessionTokens {
        accessToken: string;
        refreshToken: string;
    }
    Index

    Properties

    accessToken: string

    OIDC access token, guaranteed fresh at the moment it was handed over.

    refreshToken: string

    OIDC refresh token, when the session has one — it exists only if the client requested the offline_access scope and the provider granted it.