Dynamic parameters in redirect URI querystring

In our website, we may have some dynamic parameters in the querystring, which we need to be persisted after the user logs in with Sign In with Apple, but we get an invalid_redirect_uri error every time.


Is there any way we can setup that the allowed redirect URI might have some parameters in the querystring?


I think that SIWA should check only the beginning of the URI, and if it matches, and it finds some parameters in the querystring, just pass them along to the redirect URI upon login.


Any help? Thanks!

Replies

You can pass a dynamic stringified JSON in the param "state" as mentioned in the docs:

The state contained in the Authorize URL.