I am creating a new user with node-appwrite in SSR
The docs recommend using AdminClient, but I want to use a regular client (as AdminClient bypasses rate limits)
const session = await account.createEmailPasswordSession(email, password);
This returns the following session without a secret:
session {
  '$id': '6748833fdaaa18fa840f',
  '$createdAt': '2024-11-28T14:50:39.919+00:00',
  '$updatedAt': '2024-11-28T14:50:39.919+00:00',
  userId: '6748833e00132201811a',
  expire: '2025-11-28T14:50:39.895+00:00',
  provider: 'email',
  providerUid: 'XXXXXXXXXXXX@XXXXXXXXXXX.com',
  providerAccessToken: '',
  providerAccessTokenExpiry: '',
  providerRefreshToken: '',
  ip: '103.XXX.XXX.XXX',
  osCode: 'MAC',
  osName: 'Mac',
  osVersion: '',
  clientType: '',
  clientCode: '',
  clientName: '',
  clientVersion: '',
  clientEngine: '',
  clientEngineVersion: '',
  deviceName: 'desktop',
  deviceBrand: 'Apple',
  deviceModel: '',
  countryCode: 'in',
  countryName: 'India',
  current: true,
  factors: [ 'password' ],
  secret: '',
  mfaUpdatedAt: ''
}
I am using this in Nextjs SSR
If we were to use AdminClient, then it bypasses rate limit, which means, we'll have to handle rate-limit manually
Ideally, session must be created from from regular client too (without need of AdminClient) so Appwrite's existing rate-limits come into play, and take care of security
Recommended threads
- appwrite auth problem regarding the sess...
Hi, I have problem with auth. When I try to login/signup using OTP, at the end session.secret is empty, i have searched online and in the docs but i cannot find...
 - log out failure
I am trying to set up the user sign up/log in/log out and while I have got the sign up/log in to work, log out keeps failing. i am keeping it simple with only r...
 - OAuth login not working on deployed app ...
Hey there, I've been dealing with an issue where I cannot use OAuth on my deployed app - locally everything works fine. I am using react-router in Framework Mo...