I have come across a library that includes the following function declaration:
import { Auth0JwtStrategy } from './strategy/auth0-jwt.strategy';
import { Auth0Service } from './auth0.service';
import { Auth0Options } from './auth0.interface';
export declare class Auth0Module {
static register({ options, ...inject }: {
options: Auth0Options;
[name: string]: any;
}): {
module: typeof Auth0Module;
providers: {
provide: typeof Auth0JwtStrategy;
useFactory: (auth0Service: Auth0Service) => Auth0JwtStrategy;
inject: (typeof Auth0Service)[];
}[];
};
}
However, I am struggling to understand how to correctly utilize Auth0Module.register
.
The structure of Auth0Options is defined as follows:
export interface Auth0Options {
domain: string;
clientId: string;
clientSecret: string;
audience?: string;
namespace?: string;
}
I am having difficulty in formulating the parameters for this declaration.
If more information is required, feel free to ask.
Can someone guide me on how to proceed?