mongodb / stitch-js-sdk

MongoDB Stitch JavaScript SDK
Apache License 2.0
113 stars 67 forks source link

StitchClientError #397

Open rayster1232 opened 4 years ago

rayster1232 commented 4 years ago

Whenever I run the line Stitch.initializeDefaultAppClient('myapp-miqoc');, my code throws the error "StitchClientError: (CouldNotLoadPersistedAuthInfo): failed to load stored auth information for Stitch". I attempted to create another app in Stitch, but I got the same error.

Do you have any idea how to fix this?.

The code is as so:

componentDidMount() {
        Stitch.initializeDefaultAppClient('myapp-miqoc');
        const mongodb = this.client.getServiceClient(
          RemoteMongoClient.factory,
          "mongodb-atlas"
        );