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

18 lines 689 B
export var getGoogleUrl = function (from) { var rootUrl = "https://accounts.google.com/o/oauth2/v2/auth"; var options = { redirect_uri: process.env.REACT_APP_GOOGLE_OAUTH_REDIRECT, client_id: process.env.REACT_APP_GOOGLE_OAUTH_CLIENT_ID, access_type: 'offline', response_type: 'code', prompt: 'consent', scope: [ 'https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email', ].join(' '), state: from }; var qs = new URLSearchParams(options); return "".concat(rootUrl, "?").concat(qs.toString()); }; //# sourceMappingURL=get-google-url.js.map