Updates to React and OAuth 2 Tutorials

We’ve rolled out a major update to two courses in our Decoupled Headless Drupal guide: Get Started with React and Drupal Together and API Authentication with JSON:API in Drupal. These updates (and a new tutorial!) bring our tutorials in line with current security best practices and modern React development tooling. Huge thanks to lead trainer, Joe Shindelar, for the heavy lift on this one.

New tutorial: Use Vite to Start a Decoupled React Application

We’ve published a new tutorial, Use Vite to Start a Decoupled React Application. Vite lets you scaffold a React application with modern tooling, instant startup, and hot module replacement. It’s a great fit for decoupled apps that talk to Drupal’s JSON:API. After creating the scaffold, you’ll port code from earlier tutorials into the new structure.

This tutorial replaces the now-archived Use create-react-app to Start a Decoupled React Application. The archived version is still available for reference, but we recommend Vite going forward.

Updates to OAuth 2 tutorials

The password grant flow has been deprecated and removed from the 6.x release of the Drupal Simple OAuth module. All our OAuth tutorials now use the authorization code + PKCE flow, the current security best practice.

Highlights of this update:

  • Updated OAuth flow from password grant to authorization code + PKCE
  • Added helper functions with refresh token support
  • Updated code examples and screenshots
  • Improved explanations of OAuth concepts
  • Added React Router integration for OAuth callback handling
  • Removed deprecated CSRF token requirements

Tutorials updated

We’d love your feedback as we continue keeping our tutorials up to date.

Similar Posts

  • Free Coaching for the Drupal Community

    In 2024 I became a certified coach to round out the informal coaching that I’ve been providing for many years. I’ve used that training to support a variety of people in several different volunteer communities, including folks who attended our Leadership Training for Open Source course last year. In an effort to support the Drupal…

  • Top 10 Best Bluehost Alternative 2025,Sep | Top Competitors

    When you talk about web hosting, BlueHost has been a popular name for many bloggers. However, over the years, a lot of customers started having issues with the services. Issues like slow load times, limited affordability options, the lack of a free trial and inconsistent customer support have left many users disappointed. Because of these…

  • My Exact 7-Step Framework for Brand SEO (With Templates)

    Branding wasn’t something SEOs traditionally thought much about. The real wins were in non-branded keywords, where the traffic and conversions lived.  However, that changed when Google and OpenAI turned most of these queries into zero-click searches. For the remaining queries, search platforms directly reward authoritative and popular brands, so branding can no longer be ignored…

  • Release Day: Single Directory Components in Drupal

    We’ve heard from many of you that you want to learn more about Single Directory Components (SDCs) in Drupal. Which makes sense, since they are one of the most exciting new features in Drupal theming since Twig was added to Drupal 8. We’re excited to share that the first phase of our brand-new SDC course…