Back

What's the difference between `createAdminClient` and `createSessionClient`

  • 0
  • Web
👾Rnbsov
4 Aug, 2024, 14:33
TL;DR
`createAdminClient` is used with oAuth, while `createSessionClient` is utilized for regular sessions. Use `createAdminClient` when implementing oAuth, as detailed in this documentation: https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-3
👾Rnbsov
4 Aug, 2024, 14:33

and when I should use admin instead of session one?

👾Rnbsov
4 Aug, 2024, 14:34

I saw only that with oAuth, the createAdminClient used

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more