Feat/GitHub auth (#6)
* ✨ (sign in) create sign in to github button * ✨ (github login) login via github button * 💄 (homepage) * ➕ (date fns) * ✨ (github login) refresh token when token expired
This commit is contained in:
8
src/modules/user/interfaces/GithubToken.ts
Normal file
8
src/modules/user/interfaces/GithubToken.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface GithubToken {
|
||||
access_token: string
|
||||
expires_in: number
|
||||
refresh_token: string
|
||||
refresh_token_expires_in: number
|
||||
scope: string
|
||||
token_type: 'bearer'
|
||||
}
|
||||
5
src/modules/user/interfaces/GithubTokenError.ts
Normal file
5
src/modules/user/interfaces/GithubTokenError.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface GithubTokenError {
|
||||
error: string
|
||||
error_description: string
|
||||
error_uri: string
|
||||
}
|
||||
Reference in New Issue
Block a user