Jon-Eric Cook
How would i get a user by their email?
I am integrating Paddle and their webhooks include a customer id (this is a customer id they created). I take the customer id and do a look up in their system for the user's email. Now that i have the email i dont know how to find the user in appwrite.
TL;DR
To get a user by email in Appwrite, you can use the following code snippet:
```js
users.list([
Query.equal(“email”, USER_EMAIL_ADDRESS)
])
```
This code will allow you to find a user based on their email address. ideclon
I haven’t tested it, but this should work
TypeScript
users.list([
Query.equal(“email”, USER_EMAIL_ADDRESS)
])
Recommended threads
- Validate User Server Side
I want to check if the user has a valid session before fetching data ```import { NextResponse } from 'next/server'; import { Client, Users } from 'node-appwrit...
- How to protect file url
I generate the url to file in NextJS server action. In client component, i use that url as src image. It works fine when I give Any permission! I want to protec...
- https://discord.com/channels/56416073084...
i want to add email authentication to this from appwrite can anyone help me with that