Back

Fingerprint / Token authentication

  • 0
  • Self Hosted
  • Auth
Pie_Rozek
9 Apr, 2024, 13:55

Hi all!

I am trying to check out appwrite if it will allow me to incorporate it in my next project. I have appwrite up and running and a few endpoint implemented and I like it so far.

I wanted to see now if I'll be able to login users with a "fingerprint" from a mobile device. Say String "123" for test purpose. I tried using: https://appwrite.io/docs/products/auth/custom-token But I don't have account.createSession in JS.

Please can you advice how can I achieve this ? πŸ™‚ Many thanks!

TL;DR
Developers are discussing fingerprint/token authentication. They clarify the usage of `createToken` on the server and `createSession` on the client. A link to a custom flow implementation is shared. `account.createSession()` is only for the server-side. A developer is looking to log in users via "fingerprint" on a mobile device using Appwrite and encounters an issue with JS.
ideclon
9 Apr, 2024, 13:56

account.createSession() is only available on server-side.

Where are you trying to sign the user into?

Meldiron
9 Apr, 2024, 13:58

Nice catch, createToken should run on server (Server SDK), and createSession on client (Client SDK).

Here is passkey I implement in free time, it showcases a custom flow as well: https://dev.to/meldiron/biometric-authentication-with-passkeys-3e1

I dont know how exactly fingerprint ID works in mobile apps, but I can imagine it is similar handhsake/challegne approach.

ideclon
9 Apr, 2024, 13:59

Oh, whoops - looks like I got them mixed up!

Meldiron
9 Apr, 2024, 14:00

Well you spotted it, close enough 😝 I was already digging in docs if it's createTokenSession πŸ™ˆ

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