Defines the base structure and default methods for authentication connectors. Use this to implement new identity provider integrations within the Logto ecosystem.
// Source: https://github.com/logto-io/logto | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import { ConnectorError, ConnectorErrorCodes } from '@logto/connector-kit';
export const notImplemented = () => {
throw new ConnectorError(ConnectorErrorCodes.NotImplemented);
};
export const defaultConnectorMethods = {
getAuthorizationUri: notImplemented,
getUserInfo: notImplemented,
sendMessage: notImplemented,
validateConfig: notImplemented,
};
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key