MCPcopy
hub / github.com/directus/directus / getAuthEndpoint

Function getAuthEndpoint

sdk/src/rest/utils/get-auth-endpoint.ts:5–8  ·  view source on GitHub ↗
(provider?: string)

Source from the content-addressed store, hash-verified

3 * @returns The endpoint to be used for authentication
4 */
5export function getAuthEndpoint(provider?: string): string {
6 if (provider) return `/auth/login/${provider}`;
7 return '/auth/login';
8}

Callers 3

loginFunction · 0.90
loginFunction · 0.85
loginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected