Understanding the authentication system for Streetkids Matter administrators
The getUserByOpenId function was trying to fetch all columns from the database. We fixed it to explicitly select only the columns that exist: id, openId, name, email, role.
The session token was being created as a base64-encoded JSON string instead of a proper JWT token. We updated the testLoginAsAdmin procedure to use the SDK's createSessionToken() method.
Fixed the import of getSessionCookieOptions to use the correct module path: ./_core/cookies instead of ./_core/context.