Is it a safe way to use the loginWithRedirect to pass extra parameter?

Hey there @wan!

Yes, this is the correct way to pass params - If you are using v2 of auth0-react, auth0-angular, etc. then you will want to make sure and be aware of the introduction authorizationParams as outlined here.

Hope this helps!