Hi, we are using the SuperToken backend SDK and mo...
# support-questions-legacy
d
Hi, we are using the SuperToken backend SDK and modifying session data. Please suggest how to retrieve the email and name of the user from the session.init recipes? Session.init({ exposeAccessTokenToFrontendInCookieBasedAuth: true, getTokenTransferMethod: () => 'header', override: { functions: (originalImplementation) => { return { ...originalImplementation, createNewSession: async function (input) { // This goes in the access token, and is available to read on the frontend. input.accessTokenPayload = { ...input.accessTokenPayload, user: { id: input?.userId, }, }; return originalImplementation.createNewSession(input); }, }; }, }, }),