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.
auth0-react
auth0-angular
authorizationParams
Hope this helps!