Issue with User Authentication in Ready Player Me Integration

Hey everyone,

I’m having an issue with the Ready Player Me avatar creator where it keeps generating a new guest user each time it loads, even though I’m providing a valid user auth token from my backend.

The token works perfectly fine when I use it with a different client, regardless of which application config I use. However, when I try to use the same backend generating token with another repo, it doesn’t seem to be working as expected.

I’ve double-checked that the token is being correctly passed to the avatar creator, but it still creates a new guest user every time.

We’re using NextJS for both clients and I can’t see any differences in how they are configured.

Has anyone else encountered this issue before or have any ideas on what could be causing it? I’d really appreciate any help or insights you can provide to help me resolve this problem.

Thanks in advance!

Hi there, it’s Jozsef, developer at Ready Player Me. Happy to help, but can you show examples where it is working and where it is not? Some URLs and steps to reproduce would really help here. Thanks!

1 Like

Hi thanks for your reply,

If anyone else is facing same issue, I managed to get the integration working by setting clearCache to false

Still unsure why that was causing the creation of new guest, but seems to be working ok with it set to false in both environments now.

2 Likes