Spaceface16518 / Converse

A web based chat website using socketIO and express
https://converse2.herokuapp.com/
0 stars 0 forks source link

StitchError: authentication via 'anon-user' is unsupported #22

Open Spaceface16518 opened 6 years ago

Spaceface16518 commented 6 years ago

Cannot authenticate through anonymous auth like normal. I haven't changed anything since I last tested this, and anon-auth is turned on in the Stitch Admin Console.

clientPromise.then(client => {
  db = client.service("mongodb", "mongodb-atlas").db("Chats");
  client
    .login()
    .then(() => ...

.login()

This is the line that seems to be tripping up. This is the default function for anonymous authentication, and it was working until now.

georgenardes commented 5 years ago

I think you have to deploy it in the deploy session

Spaceface16518 commented 5 years ago

Thank you for the comment! Unfortunately, this was just a side project and I stopped working on it a while ago. I made this while I was first learning to code and I've grown a lot since then, so I don't think I will come back to it.

I never did integrate MongoDB with this app. Feel free to fork it and make whatever changes you want! Thank you for helping though!

mehiretab commented 5 years ago

@georgenardes your comment is usefull. After we setup every thing in mongodb we must deploy it, inorder to have an effect globally

gustawdaniel commented 4 years ago

I had this error following by tutorial

https://docs.mongodb.com/realm/node/quick-start/

and

https://docs.mongodb.com/realm/node/authenticate/#node-authenticate