UNPKG

payload-auth-plugin

Version:
9 lines (8 loc) 211 B
// src/client/oauth.ts var oauth = (options, provider) => { const oauthURL = `${options.baseURL}/api/${options.name}/oauth/authorization/${provider}`; window.location.href = oauthURL; }; export { oauth };