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
- Issue with downloading large files (40GB...
Hi everyone! I am using the latest Appwrite 1.8.0 version on my self-hosted server. I successfully uploaded a large ZIP archive (~40GB) using the chunked uploa...
- Cant get realtime working
Hey I nned some help with realtime a gain. I was using client.subscribe(...), and i found out that its depricated then i believe realtime.subscribe(...) is the ...
- Hi Folks, Database Writing Issue
Hey Folks im trying to get logging setup on my website but im getting an error, i dont have any document id and i think this is the issue but i havent got the f...