WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...

    Interface TokenPair

    Token pair interface containing both access and refresh JWT tokens

    This interface defines the structure for JWT token pairs returned by authentication operations. It contains both short-lived access tokens for API requests and long-lived refresh tokens for token renewal, providing a complete authentication token set.

    TokenPair

    // Typical usage in authentication response
    const tokens: TokenPair = {
    accessToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
    refreshToken: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'
    };