Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Merge pull request #138 from yevheniikulisidi/feature/telegram-refactoring

Andrii Romasiunc4e5d3a57824
diff --cc src/auth/auth.service.ts
index 36822bbad,c49135cca..ffa86384a
--- a/src/auth/auth.service.ts
+++ b/src/auth/auth.service.ts
@@@ -32,26 -30,16 +30,26 @@@ import
MAX_EMAIL_REQUESTS,
User,
TRIAL_DURATION,
+ SelfhostedUser,
+ generateSelfhostedUser,
} from 'src/user/entities/user.entity'
- import { TelegrafContext } from 'src/user/user.controller'
import { UserService } from 'src/user/user.service'
import { ProjectService } from 'src/project/project.service'
+import {
+ saveRefreshTokenClickhouse,
+ findRefreshTokenClickhouse,
+ deleteRefreshTokenClickhouse,
+} from 'src/common/utils'
import {
REDIS_SSO_UUID,
redis,
PRODUCTION_ORIGIN,
isDevelopment,
+ isSelfhosted,
+ SELFHOSTED_EMAIL,
+ SELFHOSTED_PASSWORD,
} from 'src/common/constants'
+ import { TelegramService } from 'src/integrations/telegram/telegram.service'
import { SSOProviders } from './dtos/sso-generate.dto'
import { UserGoogleDTO } from '../user/dto/user-google.dto'
import { UserGithubDTO } from '../user/dto/user-github.dto'