-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#26): removed simple-oauth2 dependecy
fixed typing errors and removed unnecessary importings
- Loading branch information
1 parent
293fbaf
commit ae89fc5
Showing
13 changed files
with
48 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,5 @@ | ||
import { AuthorizationCode, AccessToken, Token } from "simple-oauth2"; | ||
import wakatime from "./providers/wakatime"; | ||
import github from "./providers/github"; | ||
import stackoverflow from "./providers/stackoverflow"; | ||
|
||
export type ConnectionProfile = { | ||
name: string; | ||
email: string; | ||
image: string; | ||
}; | ||
|
||
export type Provider = { | ||
code: string; | ||
client: { | ||
id: string; | ||
secret: string; | ||
}; | ||
authorization: AuthorizationCode; | ||
getTokenParam: ( | ||
provider: any, | ||
params: any | ||
) => { | ||
code: string; | ||
redirect_uri: string; | ||
|
||
client_id?: string; | ||
client_secret?: string; | ||
|
||
state?: string; | ||
grant_type?: string; | ||
login?: string; | ||
allow_signup?: boolean; | ||
}; | ||
connect_url?: string; | ||
getProfile: (token: Token) => Promise<ConnectionProfile | undefined>; | ||
redirect_uri: string; | ||
scope: string; | ||
}; | ||
|
||
export const providers: { [key: string]: Provider } = { | ||
wakatime, | ||
github, | ||
stackoverflow, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters