
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
- Internal 500 Server Error
I don't have much information but I am unable to create anything on database, Auth users are creating but not able to fetch into database
- CORS + 401 Error with Appwrite Authentic...
I'm getting a CORS + 401 Error with Appwrite Authentication Access to fetch at 'https://cloud.appwrite.io/v1/account/sessions/email' from origin 'https://my-c...
- Exposing project id and endpoint on GitH...
Is it best practice to expose your project id and endpoint in your appwrite.js file when publishing an NextJS or Angular project. If you use a .env file, that i...
