---
title: Grant type
sidebar_custom_props:
    termName: Grant type
    tags:
        - OAuth2/OIDC
    shortDescription: OAuth2 mechanism for obtaining tokens.
    longDescription: Examples include `authorization_code`, `client_credentials`, and `refresh_token`; PKCE strengthens `authorization_code` for public clients.
---
