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
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...