8base / 8base-firebase-auth-example

1 stars 1 forks source link

window.localStorage fails gastby build step #1

Open tehfailsafe opened 5 years ago

tehfailsafe commented 5 years ago

Still using Gatsby, and can't use AppProvider because of that. However in authClient.js window.localStorage is used again. Is there a way around using any references to window (which doesn't exist in a SSR environment?)

vorobeez commented 5 years ago

You can use any other storage which you would like. There is required api: https://github.com/8base/sdk/blob/master/packages/utils/src/types.ts#L139