We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c539b0b commit 7d90d1aCopy full SHA for 7d90d1a
src/renderer/utils/auth/utils.ts
@@ -9,7 +9,6 @@ import type {
9
AuthCode,
10
AuthState,
11
ClientID,
12
- GitifyUser,
13
Hostname,
14
Link,
15
Token,
@@ -72,21 +71,6 @@ export function authGitHub(
72
71
});
73
}
74
75
-export async function getUserData(
76
- token: Token,
77
- hostname: Hostname,
78
-): Promise<GitifyUser> {
79
- const response = await fetchAuthenticatedUserDetails(hostname, token);
80
- const user = response.data.viewer;
81
-
82
- return {
83
- id: user.id,
84
- login: user.login,
85
- name: user.name,
86
- avatar: user.avatarUrl,
87
- };
88
-}
89
90
export async function getToken(
91
authCode: AuthCode,
92
authOptions = Constants.DEFAULT_AUTH_OPTIONS,
0 commit comments