From c0c59560232a687d3257879a41d5e3119a4d47bf Mon Sep 17 00:00:00 2001 From: Bkh <62846961+khajimatov@users.noreply.github.com> Date: Fri, 27 Jun 2025 14:46:11 +0500 Subject: [PATCH] Add createSubjects import to code example For some reason Cursor IDE did not show createSubjects from '@openauthjs/openauth/subject' and only option was '@openauthjs/openauth' which is marked as deprecated. So I thought it would be helpful if import line was present in the code snippet --- www/src/content/docs/docs/index.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/www/src/content/docs/docs/index.mdx b/www/src/content/docs/docs/index.mdx index de3904d6..826e323c 100644 --- a/www/src/content/docs/docs/index.mdx +++ b/www/src/content/docs/docs/index.mdx @@ -136,6 +136,7 @@ const app = issuer({ Next up is the `subjects` field. Subjects are what the access token generated at the end of the auth flow will map to. Under the hood, the access token is a JWT that contains this data. You will likely just have a single subject to start but you can define additional ones for different types of users. ```ts title="subjects.ts" +import { createSubjects } from "@openauthjs/openauth/subject" import { object, string } from "valibot" const subjects = createSubjects({