Sign in with Apple - how to get "id"?

Hi!
I see the “id” parameter for apple authorization in siwa extension-

siwa.authenticate(id, function(self, data)
siwa.get_credential_state(id, function(self, data)

Where can I get it? :thinking:
Thank!

The example in the API reference is incorrect:

The siwa.authenticate() function only takes a callback function. And you use the returned user id as argument to siwa.get_credential_state()

Fixed now. New API ref with correct example should be up on the site in a few minutes.

3 Likes

Thank! It works!

1 Like