fix: disable api key hashing
This commit is contained in:
@@ -42,7 +42,8 @@ export const initAuth = (db: dbClient) => {
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
apiKey(),
|
||||
// @todo: hasing is disabled due to a bug in the api key plugin
|
||||
apiKey({ disableKeyHashing: true }),
|
||||
magicLink({
|
||||
expiresIn: 60 * 60 * 24 * 7, // 7 days
|
||||
sendMagicLink: async ({ email, url }) => {
|
||||
|
||||
@@ -51,7 +51,7 @@ export const verification = pgTable("verification", {
|
||||
updatedAt: timestamp("updatedAt"),
|
||||
}).enableRLS();
|
||||
|
||||
export const apiKey = pgTable("apikey", {
|
||||
export const apiKey = pgTable("apiKey", {
|
||||
id: bigserial("id", { mode: "number" }).primaryKey(),
|
||||
name: text("name"),
|
||||
start: text("start"),
|
||||
|
||||
Reference in New Issue
Block a user