Skip to content

Commit

Permalink
fix: fix more type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pluvrt committed Jan 21, 2025
1 parent 34fb23e commit 5a8f073
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 19 deletions.
4 changes: 0 additions & 4 deletions apps/web/src/inputs/docs/@pluv_io/API Reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ import { Database } from "./db";
const io = createIO({
// Optional: if provided, defines authorization for rooms created by io
authorize: {
// If required is false, users can authenticate for a room to
// attach an identity to their presence. Otherwise they will be
// anonymous.
required: true,
// The secret for generating your JWT
secret: process.env.PLUV_AUTH_SECRET!,
// The shape of your user object. `id` must always be required.
Expand Down
4 changes: 0 additions & 4 deletions apps/web/src/inputs/docs/@pluv_io/Authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import { z } from "zod";

export const io = createIO({
authorize: {
// If required is false, users can authenticate for a room to
// attach an identity to their presence. Otherwise they will be
// anonymous.
required: true,
// The secret for generating your JWT
secret: process.env.PLUV_AUTH_SECRET!,
// The shape of your user object. `id` must always be required.
Expand Down
4 changes: 0 additions & 4 deletions docs/@pluv__io/api_reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ import { Database } from "./db";
const io = createIO({
// Optional: if provided, defines authorization for rooms created by io
authorize: {
// If required is false, users can authenticate for a room to
// attach an identity to their presence. Otherwise they will be
// anonymous.
required: true,
// The secret for generating your JWT
secret: process.env.PLUV_AUTH_SECRET!,
// The shape of your user object. `id` must always be required.
Expand Down
4 changes: 0 additions & 4 deletions docs/@pluv__io/authorization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import { z } from "zod";

export const io = createIO({
authorize: {
// If required is false, users can authenticate for a room to
// attach an identity to their presence. Otherwise they will be
// anonymous.
required: true,
// The secret for generating your JWT
secret: process.env.PLUV_AUTH_SECRET!,
// The shape of your user object. `id` must always be required.
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/src/demo/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { z } from "zod";

export const io = createIO({
authorize: {
required: true,
secret: process.env.PLUV_AUTH_SECRET!,
user: z.object({
id: z.string(),
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/src/server/loro/node/pluv-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const PLUV_AUTH_SECRET = "secret123";

export const io = createIO({
authorize: {
required: true,
secret: PLUV_AUTH_SECRET,
user: z.object({
id: z.string(),
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/src/server/noop/node/pluv-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const PLUV_AUTH_SECRET = "secret123";

export const io = createIO({
authorize: {
required: true,
secret: PLUV_AUTH_SECRET,
user: z.object({
id: z.string(),
Expand Down

0 comments on commit 5a8f073

Please sign in to comment.