How to redirect to unique callback URL

I’m using Lock and Django to authenthicate my users, whenever it’s done I’d like to redirect them to the same page they were. I thought of two ways to do so:

  1. Specify callback url in Lock redirectUrl parameter - Problem : Callback URL mismatch. (can’t specify each new unique url to Allowed Callback URLs )

  2. Specifying my unique url under and sent it by lock to auth0 that will send it back along with the user informations. - Problem: I don’t think such feature exist.

How can I achieve this?

With the redirectUrl parameter, did you whitelist the URLs? There is also some good ideas around this below: