惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
V
V2EX
博客园 - 【当耐特】
WordPress大学
WordPress大学
爱范儿
爱范儿
美团技术团队
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
量子位
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
博客园 - 叶小钗
GbyAI
GbyAI
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
F
Full Disclosure
G
Google Developers Blog
D
Docker
T
Tailwind CSS Blog
C
Check Point Blog
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
B
Blog
博客园 - 三生石上(FineUI控件)
博客园 - Franky
H
Help Net Security
MyScale Blog
MyScale Blog
U
Unit 42
D
DataBreaches.Net
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Add a Consent Screen to Your OIDC Authorization Server with Hono
ShyGyver · 2026-05-02 · via DEV Community

The previous articles in this series built a working OIDC Authorization Code Flow server, fixed the hardcoded issuer, and discussed how to persist signing keys. Now we will cover another important step: the consent screen.

When a third-party application requests access to a user's account, that user should explicitly choose which permissions to grant and which to deny. Those permissions could be as broad as "full access to your account" or as specific as "read-only access to your calendar".

Consent page from Google

The OAuth 2 spec defines this step, and every public-facing authorization server needs it. Without it, any registered client silently gets every scope it asks for the moment the user authenticates.

This article adds a consent screen to the server built in the previous articles. After logging in, the user will see a page listing the requested scopes, with Allow and Deny buttons. A short-lived server-side session cookie bridges the login and consent steps so the server knows who is making the decision.


TL;DR

The full runnable example is available at Github (apps/oidc-consent-app).


What changes

The authorization flow now has two interactive steps instead of one:

  1. Login: user submits username and password.
  2. Consent: user sees the requested scopes and clicks Allow or Deny.

A session cookie ties these two steps together. After the user authenticates, the server stores a short-lived session and returns the consent page. On the next POST (the consent form submission), the server reads the session to identify the user and acts on their choice.

The generateAuthorizationCode callback becomes the control point. It now returns one of three outcomes:

Return type Meaning
{ type: "continue" } Show the consent screen; don't issue a code yet
{ type: "code", code } User approved; issue the authorization code
{ type: "deny", message } User denied; return an access_denied error

Step 1: Add imports and augment types

Add the cookie helpers from Hono and the AuthorizationCodeReqData type from the OAuth2 library:

import {
  AccessDeniedError,
  AuthorizationCodeReqData, // add this
  StrategyInsufficientScopeError,
  StrategyInternalError,
  UnauthorizedClientError,
  UnsupportedGrantTypeError,
  getOriginFromRequest,
} from "@saurbit/oauth2";

import { 
  Env, // add this
  Hono 
} from "hono";

import { deleteCookie, getCookie, setCookie } from "hono/cookie"; // add this

Enter fullscreen mode Exit fullscreen mode

The AuthorizationCodeReqData type is the base shape that the flow builder uses for data parsed at the authorization endpoint. We'll extend it in the next step.

The @saurbit/oauth2 module augmentation previously only extended UserCredentials. Add a second interface, AuthorizationCodeUser, to carry the consent decision alongside the user object through generateAuthorizationCode:

declare module "@saurbit/oauth2" {
  interface UserCredentials {
    id: string;
    email: string;
    fullName: string;
    username: string;
  }

  // add this
  interface AuthorizationCodeUser {
    id: string;
    email: string;
    fullName: string;
    username: string;
    consentStatus?: "allow" | "deny" | undefined;
  }
}

Enter fullscreen mode Exit fullscreen mode

AuthorizationCodeUser is what the user argument in generateAuthorizationCode is typed as. Adding consentStatus here lets us read it inside that callback without a type cast.


Step 2: Define ParsedData

The flow builder's parseAuthorizationEndpointData callback returns data that is then forwarded to getUserForAuthentication and generateAuthorizationCode. Define a dedicated interface that extends the base type with the extra fields the consent flow needs:

interface ParsedData extends AuthorizationCodeReqData {
  username?: string;
  password?: string;
  consent?: "allow" | "deny";
  sessionCookie?: string;
}

Enter fullscreen mode Exit fullscreen mode

consent captures which button the user clicked. sessionCookie carries the session ID so the server can look up the authenticated user on the consent POST without the user having to re-enter their password.


Step 3: Add session storage

In production, you would use a proper session store (e.g., Redis) with secure cookie flags and expiration handling. For this example, we'll keep it simple with an in-memory object. Note that this is not suitable for production use.

Add an in-memory map to hold active sessions between the login and consent steps:

// Simple in-memory session storage for demonstration (not for production use)
const sessionStorage: Record<
  string,
  {
    userId: string;
    expiresAt: number;
  }
> = {};

Enter fullscreen mode Exit fullscreen mode

Each entry is keyed by a random UUID that becomes the session cookie value. The expiresAt field is checked on every read to discard stale sessions.


Step 4: Update the flow builder

4.1 Pass the generic type parameter

HonoOIDCAuthorizationCodeFlowBuilder.create accepts optional generic type parameters. Pass ParsedData as the second argument so TypeScript infers the correct type inside the callbacks:

// Before
const flow = HonoOIDCAuthorizationCodeFlowBuilder.create({

// After
const flow = HonoOIDCAuthorizationCodeFlowBuilder.create<Env, ParsedData>({

Enter fullscreen mode Exit fullscreen mode

Env is Hono's generic environment type and keeps the context type correct, imported in Step 1. ParsedData is the interface defined in Step 2.

4.2 Parse consent and session cookie

Update parseAuthorizationEndpointData to extract the consent choice and the session cookie in addition to the credentials:

parseAuthorizationEndpointData: async (c) => {
  let formData: FormData | undefined = undefined;
  if (c.req.method === "POST") {
    try {
      formData = await c.req.formData();
    } catch (error) {
      console.error("Error parsing form data:", {
        error: error instanceof Error ? { name: error.name, message: error.message } : error,
      });
    }
  }
  const username = formData?.get("username");
  const password = formData?.get("password");
  const consent = formData?.get("consent");

  const sessionCookie = getCookie(c, "session"); // add this

  return {
    username: typeof username === "string" ? username : undefined,
    password: typeof password === "string" ? password : undefined,
    consent: consent === "allow" || consent === "deny" ? consent : undefined, // add this
    sessionCookie, // add this
  };
},

Enter fullscreen mode Exit fullscreen mode

This callback runs on both GET and POST requests to the authorization endpoint, so formData is only parsed when the method is POST. On a GET, formData is undefined and username, password, and consent will all be undefined. The sessionCookie read is unconditional because it is present in both requests when the session was already created.

4.3 Update getUserForAuthentication

The callback now has two paths: session-based identification and credential-based identification.

.getUserForAuthentication((_ctxt, parsedData) => {
  // Path 1: user already authenticated, identify them from the session
  if (parsedData.sessionCookie) {
    const session = sessionStorage[parsedData.sessionCookie];
    if (session) {
      if (session.expiresAt <= Date.now()) {
        // Session expired, clean up
        delete sessionStorage[parsedData.sessionCookie];
      } else if (session.expiresAt > Date.now() && session.userId === USER.id) {
        return {
          type: "authenticated",
          user: {
            id: USER.id,
            fullName: USER.fullName,
            email: USER.email,
            username: USER.username,
            consentStatus: parsedData.consent, // carry the consent decision  forward
          },
        };
      }
    }
  }

  // Path 2: no valid session, validate credentials
  if (parsedData.username === USER.username && parsedData.password === USER.password) {
    return {
      type: "authenticated",
      user: {
        id: USER.id,
        fullName: USER.fullName,
        email: USER.email,
        username: USER.username,
        // no consentStatus yet, the user hasn't seen the consent screen
      },
    };
  }
})

Enter fullscreen mode Exit fullscreen mode

When a session cookie is present and valid, the callback returns authenticated with consentStatus set to whatever the user clicked or undefined if neither button was clicked yet (e.g., a GET request with a cookie). When credentials are submitted for the first time, consentStatus is absent because the consent screen hasn't been shown.

4.4 Update generateAuthorizationCode

This callback now drives the entire consent flow:

.generateAuthorizationCode((grantContext, user) => {
  if (!user.id) {
    return undefined;
  }

  if (user.consentStatus === "deny") {
    return {
      type: "deny",
      message: "The user has denied consent for this application.",
    };
  }

  if (user.consentStatus === "allow") {
    const code = crypto.randomUUID();
    codeStorage[code] = {
      clientId: grantContext.client.id,
      scope: grantContext.scope,
      userId: `${user.id}`,
      expiresAt: Date.now() + 60000,
      codeChallenge: grantContext.codeChallenge,
      nonce: grantContext.nonce,
    };
    return { type: "code", code };
  }

  // consentStatus is undefined, the user hasn't decided yet
  return { type: "continue" };
})

Enter fullscreen mode Exit fullscreen mode

The three branches map directly to the three states consentStatus can be in:

  • "deny": the user clicked Deny; return an access_denied error to the client.
  • "allow": the user clicked Allow; store the code and return it.
  • undefined: the user just logged in or the GET request came in with a valid session; signal the flow to continue (show the consent page).

Step 5: Update the GET handler for the authorization endpoint

Previously, this handler only called initiateAuthorization. Now it checks whether the user already has a session and, if so, shows the consent page directly instead of the login form:

app.get(flow.getAuthorizationEndpoint(), async (c) => {
  if (getCookie(c, "session")) {
    const processedAuthorization = await flow.hono().processAuthorization(c);

    if (processedAuthorization.type === "continue") {
      // Valid session, no consent decision yet -> show the consent page
      return c.html(
        HtmlConsentContent({
          app: processedAuthorization.continueResponse.context.client.id,
          userFullName: processedAuthorization.continueResponse.user.fullName,
          scope: processedAuthorization.continueResponse.scope,
        })
      );
    }

    if (processedAuthorization.type === "unauthenticated") {
      // Session expired or invalid -> clear the cookie and show the login form
      deleteCookie(c, "session", { path: "/" });
      return c.html(HtmlFormContent({ usernameField: "username", passwordField: "password" }));
    }

    if (processedAuthorization.type === "error") {
      return c.json({ error: "invalid_request" }, 400);
    }
  }

  // No session -> validate the client and show the login form
  const result = await flow.hono().initiateAuthorization(c);
  if (result.success) {
    return c.html(HtmlFormContent({ usernameField: "username", passwordField: "password" }));
  }
  return c.json({ error: "invalid_request" }, 400);
});

Enter fullscreen mode Exit fullscreen mode

processAuthorization runs the full flow: it calls parseAuthorizationEndpointData, getUserForAuthentication, and generateAuthorizationCode. When a session cookie is present, getUserForAuthentication will identify the user from the session and generateAuthorizationCode will return continue (no consent decision yet), which is exactly the condition that triggers the consent page.

If the session has expired, getUserForAuthentication returns undefined (no valid session, no credentials submitted), which the flow translates to unauthenticated. The handler clears the stale cookie and falls back to the login form.


Step 6: Update the POST handler for the authorization endpoint

The POST handler needs to handle the full spectrum of outcomes: login success (show consent), consent allow (redirect with code), consent deny (redirect with error), login failure (re-render login form), and unexpected errors.

app.post(flow.getAuthorizationEndpoint(), async (c) => {
  try {
    const result = await flow.hono().processAuthorization(c);

    if (result.type === "error") {
      const error = result.error;
      if (result.redirectable) {
        const qs = [
          `error=${encodeURIComponent(
            error instanceof AccessDeniedError ? error.errorCode : "invalid_request"
          )}`,
          `error_description=${encodeURIComponent(
            error instanceof AccessDeniedError ? error.message : "Invalid request"
          )}`,
          result.state ? `state=${encodeURIComponent(result.state)}` : null,
        ]
          .filter(Boolean)
          .join("&");
        return c.redirect(`${result.redirectUri}?${qs}`);
      }
      return c.html(
        HtmlFormContent({ usernameField: "username", passwordField: "password", errorMessage: error.message }),
        400
      );
    }

    if (result.type === "code") {
      const { code, context: { state, redirectUri } } = result.authorizationCodeResponse;
      const searchParams = new URLSearchParams();
      searchParams.set("code", code);
      if (state) searchParams.set("state", state);
      return c.redirect(`${redirectUri}?${searchParams.toString()}`);
    }

    if (result.type === "continue") {
      // First POST (login form) -> create a session, set the cookie, show consent
      const sessionId = crypto.randomUUID();
      sessionStorage[sessionId] = {
        userId: result.continueResponse.user.id,
        expiresAt: Date.now() + 300000, // 5 minutes
      };

      setCookie(c, "session", sessionId, {
        path: "/",
        httpOnly: true,
        secure: true,
        sameSite: "Lax",
        maxAge: 300,
      });

      return c.html(
        HtmlConsentContent({
          app: result.continueResponse.context.client.id,
          userFullName: result.continueResponse.user.fullName,
          scope: result.continueResponse.scope,
        })
      );
    }

    if (result.type === "unauthenticated") {
      return c.html(
        HtmlFormContent({
          usernameField: "username",
          passwordField: "password",
          errorMessage: result.message || "Authentication failed. Please try again.",
        }),
        400
      );
    }
  } catch (error) {
    console.error("Unexpected error at authorization endpoint:", {
      error: error instanceof Error ? { name: error.name, message: error.message } : error,
    });
    return c.html(
      HtmlFormContent({
        usernameField: "username",
        passwordField: "password",
        errorMessage: "An unexpected error occurred. Please try again later.",
      }),
      500
    );
  }
});

Enter fullscreen mode Exit fullscreen mode

The "continue" branch is where the session is created. It only runs once, on the first POST (credential submission), because on subsequent POSTs getUserForAuthentication will already find the session and generateAuthorizationCode will return either "code" or "deny" depending on which button was clicked.

The "error" branch now also handles the "deny" case. When generateAuthorizationCode returns { type: "deny" }, the flow converts it to an AccessDeniedError and sets redirectable: true (assuming the client and redirect URI were already validated). The handler therefore redirects the browser to the client with error=access_denied in the query string.


Step 7: Add the consent page component

Add HtmlConsentContent alongside the existing HtmlFormContent function:

function HtmlConsentContent(props: { scope: string[]; app: string; userFullName: string }) {
  return html` <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <title>Consent</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      </head>
      <body>
        <h1>Consent</h1>
        <p>User: <b>${props.userFullName}</b></p>
        <p><b>${props.app}</b> is requesting the following permissions:</p>
        <form method="POST">
          ${props.scope
            ? html`<ul>
                ${props.scope.map((s) => html`<li>${s}</li>`)}
              </ul>`
            : ""}
          <button type="submit" name="consent" value="allow">Allow</button>
          <button type="submit" name="consent" value="deny">Deny</button>
        </form>
      </body>
    </html>`;
}

Enter fullscreen mode Exit fullscreen mode

Both buttons submit to the same POST endpoint. The difference is the value attribute on the name="consent" field, which parseAuthorizationEndpointData reads and stores as parsedData.consent.


How the full flow works

Here is the complete sequence from a browser's perspective:

  1. The client redirects the browser to GET /authorize?client_id=...&scope=...&....
  2. No session cookie → initiateAuthorization validates the client and returns the login form.
  3. The user submits credentials via POST /authorize.
  4. getUserForAuthentication validates them and returns authenticated (no consentStatus).
  5. generateAuthorizationCode sees no consentStatus and returns { type: "continue" }.
  6. The POST handler creates a session, sets the cookie, and returns the consent page.
  7. The user clicks Allow or Deny → another POST /authorize, this time with consent=allow (or deny) in the body and the session cookie in the header.
  8. getUserForAuthentication finds the session and returns authenticated with consentStatus set.
  9. generateAuthorizationCode acts on the decision: issues a code or returns a deny error.
  10. The POST handler redirects the browser back to the client with either ?code=... or ?error=access_denied.

Consent flow


Improvements

In the scope of this article, we focused on the core consent flow. Here are some improvements that could be made:

  • Secure forms against CSRF by including a hidden token in the form and validating it on submission.
  • Remember consent decisions per user per client to skip the consent screen on repeat authorizations.

What's next

  • Support the refresh_token grant to issue long-lived sessions