Page Contents
Home > @loopback/authentication > getAuthenticationMetadataForStrategy
getAuthenticationMetadataForStrategy() function
Get the authentication metadata object for the specified strategy.
Signature:
export declare function getAuthenticationMetadataForStrategy(metadata: AuthenticationMetadata[], strategyName: string): AuthenticationMetadata | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
metadata | AuthenticationMetadata[] | Array of authentication metadata objects |
strategyName | string | Name of the authentication strategy |
Returns:
AuthenticationMetadata | undefined