UNPKG

supertokens-node

Version:
17 lines (16 loc) 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SessionClaim = void 0; class SessionClaim { constructor(key) { this.key = key; } async build(userId, recipeUserId, tenantId, currentPayload, userContext) { const value = await this.fetchValue(userId, recipeUserId, tenantId, currentPayload, userContext); if (value === undefined) { return {}; } return this.addToPayload_internal({}, value, userContext); } } exports.SessionClaim = SessionClaim;