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
- Error: User (role: guests) missing scope...
I want to send a verification code to the user and the given phone number and check it and create a session right after the user entered the secret. For me that...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- [SOLVED] React Native Appwrite SDK not w...
So I'm trying to generate a unique ID using the ID.unique() and its generating properly, but its saying its longer than 36 characters but it isnt.. ```typescri...