how do use a custom token and secrete for password recover.
`export const createToken = async (userId: string) => { try { const { user } = await createAdminClient(); const token = await user.createToken(userId); const secret = token.secret;
return { token, secret };
} catch (error) { console.error('Error creating token:', error); throw new Error('Unable to create token'); } };`
Recommended threads
- Environment Variables in Nuxt - How to H...
https://appwrite.io/docs/tutorials/nuxt/step-3#environment-variables In the guide, the environment variables are imported simply as ``` const url: string = im...
- Project Inactivity Clarification
I'm on appwrite free plan with my account (om.thakkar@ivcventure.com). Even though throughout the week we use the project atleast once to upload dynamic content...
- [ENHANCEMENT] Use the custom Next.js dep...
Deployment adapters on Next.js are now stable! This means that we don't have to stick to the limitations of sniffing out build outputs and manually moving or mo...