Determining which OAuth grant you are in within the themes

  • I want to know which OAuth grant is happening in the login page.

    Can I do so? There doesn't appear to be a straightforward way to do so.

  • The only two grants that are relevant to an interactive flow are the authorization grant, and the implicit grant.

    I don’t recommend you use the implicit grant at all, so that leaves only the authorization grant.

    If the authorization grant is happening, response_type will be code.

    If the authorization grant is occurring due to a device grant, the user_code variable will be set.