Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "auth"

Index

Type aliases

CredentialsProvider

CredentialsProvider: () => Promise<ClientCredentials>

A Credentials provider is a function which promises client credentials

Type declaration

Functions

Authentication

ConstantCredentials

  • ConstantCredentials creates a new CredentialsProvider which always returns the credentials used to create it.

    example
    import * as TigerBay from 'tigerbay';
    const provider = TigerBay.Auth.ConstantCredentials(
     {
         clientId: 'myClientId',
         clientSecret: 'myClientSecret'
     }
    );

    Parameters

    Returns CredentialsProvider

EnvCredentials

  • EnvCredentials creates a CredentialsProvider which fetches credentials from the process environment

    Parameters

    • Default value prefix: string = "TB"

      Environment prefix (default: TB)

    Returns CredentialsProvider

Generated using TypeDoc