topcoder-platform / tc-auth-lib

Mixed front-end lib for auth0 authorization
1 stars 12 forks source link

feat: primary role #334

Closed rakibansary closed 1 year ago

rakibansary commented 1 year ago

This PR introduces three additions

  1. Signup UI in Universal Login now includes a new "Select" field to let the user choose their primary role (between Topcoder Talent and Topcoder Customer)
  2. The create API call made to identity service now sends the user chosen primary role to the API. For SSO Signups, primary role can't be set and defaults to Topcoder Talent, note that during SSO Signups, we do let the user set their handle and choose their country, and possibly adding the Select in that UI makes sense!
  3. The onboarding checklist hook now skips the onboarding flow for users with primary role: "Topcoder Customer"