Show HN: Typebase – 一个用 TypeScript 编写的单文件夹后端
Show HN: Typebase – A single-folder back end you write in TypeScript

原始链接: https://typebase.io

```// 会话、OAuth、邮箱/密码。单一文件。 import { defineAuth } from 'typebase-io/server'; export const auth = defineAuth({ trustedOrigins: ['http://localhost:3000'], emailAndPassword: { enabled: true }, socialProviders: { github: { clientId: process.env.GITHUB_CLIENT_ID!, clientSecret: process.env.GITHUB_CLIENT_SECRET!, }, }, }); ```

Sorry.
相关文章

原文

// sessions, oauth, email/password. one file.

 

import { defineAuth } from 'typebase-io/server';

 

export const auth = defineAuth({

trustedOrigins: ['http://localhost:3000'],

emailAndPassword: { enabled: true },

socialProviders: {

github: {

clientId: process.env.GITHUB_CLIENT_ID!,

clientSecret: process.env.GITHUB_CLIENT_SECRET!,

},

},

});

联系我们 contact @ memedata.com