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

16 lines 558 B
"use strict"; exports.__esModule = true; exports.getGithubUrl = void 0; 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()); } exports.getGithubUrl = getGithubUrl; //# sourceMappingURL=get-github-url.js.map