mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: use bun for package management
+ add package.json to each packages + update import path
This commit is contained in:
1 parent
fb7dc0eb73
commit
2feedc329c
47 files changed
+2893
-8818
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { Profile } from 'passport'
|
||||
import type { VerifyCallback } from 'passport-oauth2'
|
||||
import { User } from '../../../packages/models'
|
||||
import { User } from '@odyssey/models'
|
||||
import logger from '../utils/logger.js'
|
||||
|
||||
export default async function oauthVerify(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import passport from 'passport'
|
||||
import type { Express } from 'express'
|
||||
import { UserProfile } from '../../../packages/models'
|
||||
import { UserProfile } from '@odyssey/models'
|
||||
import passwordStrategy from './passwordStrategy.js'
|
||||
import jwtStrategy from './jwtStrategy.js'
|
||||
import googleStrategy from './googleStrategy.js'
|
||||
|
||||
@@ -3,7 +3,7 @@ import bcrypt from 'bcrypt'
|
||||
import { Strategy as LocalStrategy } from 'passport-local'
|
||||
import type { IVerifyOptions } from 'passport-local'
|
||||
import type { Express } from 'express'
|
||||
import { User } from '../../../packages/models'
|
||||
import { User } from '@odyssey/models'
|
||||
|
||||
async function verifyPassword(
|
||||
username: string,
|
||||
|
||||
Reference in new issue
Block a user