UNPKG

@daliboru/payload-auth-plugin-fork

Version:

Forked payload-auth-plugin with custom access token feature.

11 lines (10 loc) 274 B
export function getCallbackURL( baseURL: string, pluginType: string, provider: string, ): URL { const callback_url = new URL(baseURL) as URL callback_url.pathname = `/api/${pluginType}/oauth/callback/${provider}` callback_url.search = "" return callback_url }