Home Reference Source
import {AuthTokenAndExpiration} from 'neo4j-driver-core/lib/auth-token-manager.js'
public interface | since 5.14 | source

AuthTokenAndExpiration

Interface which defines an AuthToken with an expiration data time associated

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

expiration: Date | undefined

The expected expiration date of the auth token.

public

token: AuthToken

The AuthToken used for authenticate connections.

Public Constructors

public constructor() source

Public Members

public expiration: Date | undefined source

The expected expiration date of the auth token.

This information will be used for triggering the auth token refresh in managers created with authTokenManagers#bearer.

If this value is not defined, the AuthToken will be considered valid until a Neo.ClientError.Security.TokenExpired error happens.

public token: AuthToken source

The AuthToken used for authenticate connections.

See: