Open tehfailsafe opened 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?)
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
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?)