As mentioned in the Client settings page:
You can use the star symbol as a
wildcard for subdomains
(‘*.google.com’). Make sure to specify
the protocol, http:// or https://,
otherwise the callback may fail in
some cases.
Wildcards are only allowed for the subdomain - the suggested way to handle multiple routes is to use a single callback route (e.g. /callback), end redirect to the desired route from within your application:
- Store the following in localStorage:
randomStateValue: ‘/profile’. - Pass
randomStateValueas thestate
parameter in the authentication
request. - Check the state value in
the callback, and retrieve the value
forrandomStateValuefrom
localStorage. - Perform the redirect
from within your application.