Mongodb Realm Authentication using the real-web SDK 3 questions

When creating a new user in Realm using the web-sdk, the following key/values are stored in localstorage.

  1. Which key/value pair would be important to check upon page refresh? Can you point me to the docs showing how to autologin users?

image

  1. Isn’t it safer to store jwts in cookies vs local-stroage with http-only? Then it cant be accessed by JS? Or is the old argument of storing in cookies no longer valid?

  2. How would i implement magic links or passwordless authentication with mongodb realm?

Thank you.

1 Like

sorry to bump, this issue needs some attention, docs are lacking when it comes to realm auth.

1 Like