mongodb / stitch-js-sdk

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

refreshAccessToken() not defined in StitchAuth.ts #407

Open gigerbytes opened 4 years ago

gigerbytes commented 4 years ago

Getting the following error by following the GraphQL tutorial, with typescript.

https://docs.mongodb.com/stitch/graphql/connect-from-a-client-application/

Property 'refreshAccessToken' does not exist on type 'StitchAuth'.ts(2339)

I think this is related to #380

lawmbass commented 4 years ago

Getting the same issue, I had to set my app to type any for the time being until the proper typings get added 😞

const app: any = Stitch.hasAppClient(APP_ID)
  ? Stitch.getAppClient(APP_ID)
  : Stitch.initializeAppClient(APP_ID);