Returns an authSessionId for the given user. All requests with this authSessionId will be in that users name. The AuthSessionId should be kept secret and never be publicly available.
import { getImpersonatedAuthSessionId } from "@dvelop-sdk/identityprovider";
const authSessionId = await getImpersonatedAuthSessionId({
systemBaseUri: "https://monster-ag.d-velop.cloud",
authSessionId: "dQw4w9WgXcQ" // has to be an AppSession
}, {
userId: "XiFkyR35v2Y"
});
console.log(authSessionId);
Returns an authSessionId for the given user. All requests with this authSessionId will be in that users name. The AuthSessionId should be kept secret and never be publicly available.