Initializing provider before user signs in

There can be only one provider per app, we add it close to the root in the components tree, but it fails because user may not be authenticated yet - provider doesn’t allow empty userId, authToken and displayName props. How it’s supposed to work?

Hi @anton In order to the unauthenticated users to access/use the app, you can create them an anonymous access which could be generated by random id. I’m uncertain if this would work with your use case? If not, could you please share more detail with us?

I can provide a fake user ID, but I cannot provide fake auth token, which is issued per user and supposed to be validated on the Amity side.

@anton Please use the fake user ID to get authentication token via Amity API and pass it to the component.