snowballtools-base/packages/backend/src/config.ts
Nabarun Gogoi e1e9a7063e Implement Github authentication to show repositories list (#45)
* Use react-oauth-popup for github authentication popup

* Fetch auth token and use in app to fetch list of repositories

* Get client id and secret from config

* Use GitHub search API for fetching repos

* Use debounce for searching repos and projects
2024-02-01 11:37:57 +05:30

21 lines
340 B
TypeScript

export interface ServerConfig {
host: string;
port: number;
gqlPath?: string;
}
export interface DatabaseConfig {
dbPath: string;
}
export interface GithubOauthConfig {
clientId: string;
clientSecret: string;
}
export interface Config {
server: ServerConfig;
database: DatabaseConfig;
githubOauth: GithubOauthConfig;
}