UNPKG

@daliboru/payload-auth-plugin-fork

Version:

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

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 };