UNPKG

@rtbjs/use-state

Version:

`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management

12 lines 456 B
export function getGithubUrl(from) { var rootURl = 'https://github.com/login/oauth/authorize'; var options = { client_id: process.env.REACT_APP_GITHUB_OAUTH_CLIENT_ID, redirect_uri: process.env.REACT_APP_GITHUB_OAUTH_REDIRECT_URL, scope: 'user:email', state: from }; var qs = new URLSearchParams(options); return "".concat(rootURl, "?").concat(qs.toString()); } //# sourceMappingURL=get-github-url.js.map