Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Jan 25, 2025
2 parents d3ce619 + a6a1ba3 commit 38de205
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/recipe/drizzle.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export type Table = typeof table
::: code-group
```ts [src/index.ts]
import { createSelectSchema } from 'drizzle-typebox'
import { createInsertSchema } from 'drizzle-typebox'
import { Table } from './database/schema'

const _createUser = createInsertSchema(table.user, {
Expand Down Expand Up @@ -144,7 +144,7 @@ new Elysia()
为了避免这种情况,我们需要 **`drizzle-typebox``Elysia` 模式之间显式定义一个类型**
```ts
import { t } from 'elysia'
import { createSelectSchema } from 'drizzle-typebox'
import { createInsertSchema } from 'drizzle-typebox'

import { table } from './database/schema'

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ export const user = new Elysia({ prefix: '/user' })// [!code ++]
2. 在该实例中,我们定义了一个内存存储 `user``session`
- 2.1 `user` 将保存 `username` 和 `password` 的键值对
- 2.2 `session` 将保存 `session` 和 `username` 的键值对
3.`/sign-in` 中,我们插入一个用户名和经过 argon2id 散列的密码
4.`/sign-up` 中我们做以下事情:
3.`/sign-up` 中,我们插入一个用户名和经过 argon2id 散列的密码
4.`/sign-in` 中我们做以下事情:
- 4.1 我们检查用户是否存在并验证密码
- 4.2 如果密码匹配,我们会在 `session` 中生成一个新会话
- 4.3 我们将 cookie `token` 设置为 session 的值
Expand Down

0 comments on commit 38de205

Please sign in to comment.