be4stOriginal post
Rank 1: Thread
I get an error message when i try to create a session of new user.
const users = new Users(client)
const user = await users.create(
ID.unique(),
email,
phone,
password,
name
)
const session = await users.createSession(user.$id)
Summary
Developers are encountering an error message stating "Invalid document structure: Missing required attribute 'expire'" when creating a session for a new user due to a missing attribute. Make sure to include the required attribute "expire" when creating a session to resolve the error.