Skip to content

Commit

Permalink
Add request and user context in topLevelWebsiteDomain and CookieSameSite
Browse files Browse the repository at this point in the history
  • Loading branch information
nkshah2 committed Sep 29, 2023
1 parent 6ae4467 commit f749956
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions lib/build/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions lib/ts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,8 @@ export function normaliseInputAppInfoOrThrowError(appInfo: AppInfo): NormalisedA

const apiDomain = new NormalisedURLDomain(appInfo.apiDomain);
const topLevelAPIDomain = getTopLevelDomainForSameSiteResolution(apiDomain.getAsStringDangerous());
const topLevelWebsiteDomain = () => {
return getTopLevelDomainForSameSiteResolution(
websiteDomainFunction({
request: undefined,
userContext: {},
}).getAsStringDangerous()
);
const topLevelWebsiteDomain = (input: { request: BaseRequest | undefined; userContext: any }) => {
return getTopLevelDomainForSameSiteResolution(websiteDomainFunction(input).getAsStringDangerous());
};

return {
Expand Down

0 comments on commit f749956

Please sign in to comment.