question

David Coombes avatar image
David Coombes asked

Can we call client-side cloudscript without being logged in?

The CloudScript examples (Unity) all seem to require the user to be logged in. I'm wanting to use CloudScript to generate a unique username ("pilot_<number_of_users>") ahead of creating a new email-based account. Is this possible?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

No, we can’t call CloudScript from the client-side without being logged in. When clients call API ExecuteCloudScript, PlayFab will verify the clients’ session tickets. Clients should be authorized when they call any client API. Developers should use a custom sever to host such features that generating a unique username ahead of clients register a new email-based account. Or you can try to add this feature in client code.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.