MCPcopy
hub / github.com/claabs/epicgames-freegames-node / generateLoginRedirect

Function generateLoginRedirect

src/purchase.ts:4–10  ·  view source on GitHub ↗
(redirectUrl: string)

Source from the content-addressed store, hash-verified

2import { OfferInfo } from './interfaces/types.js';
3
4export const generateLoginRedirect = (redirectUrl: string): string => {
5 const loginRedirectUrl = new URL(ID_LOGIN_ENDPOINT);
6 loginRedirectUrl.searchParams.set('noHostRedirect', 'true');
7 loginRedirectUrl.searchParams.set('redirectUrl', redirectUrl);
8 loginRedirectUrl.searchParams.set('client_id', EPIC_CLIENT_ID);
9 return loginRedirectUrl.toString();
10};
11
12export const generateCheckoutUrl = (offers: OfferInfo[]): string => {
13 const offersParams = offers

Callers 2

generateCheckoutUrlFunction · 0.85
refreshCookieLoginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected