@@ -87,36 +87,36 @@ export type ExchangeDeviceCodeGitHubAppResponseWithoutClientSecret =
8787 * Exchange the code from GitHub's OAuth Web flow for OAuth Apps.
8888 */
8989export async function exchangeDeviceCode (
90- options : ExchangeDeviceCodeOAuthAppOptions
90+ options : ExchangeDeviceCodeOAuthAppOptions ,
9191) : Promise < ExchangeDeviceCodeOAuthAppResponse > ;
9292
9393/**
9494 * Exchange the code from GitHub's OAuth Web flow for OAuth Apps without clientSecret
9595 */
9696export async function exchangeDeviceCode (
97- options : ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret
97+ options : ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret ,
9898) : Promise < ExchangeDeviceCodeOAuthAppResponseWithoutClientSecret > ;
9999
100100/**
101101 * Exchange the code from GitHub's OAuth Web flow for GitHub Apps. `scopes` are not supported by GitHub Apps.
102102 */
103103export async function exchangeDeviceCode (
104- options : ExchangeDeviceCodeGitHubAppOptions
104+ options : ExchangeDeviceCodeGitHubAppOptions ,
105105) : Promise < ExchangeDeviceCodeGitHubAppResponse > ;
106106
107107/**
108108 * Exchange the code from GitHub's OAuth Web flow for GitHub Apps without using `clientSecret`. `scopes` are not supported by GitHub Apps.
109109 */
110110export async function exchangeDeviceCode (
111- options : ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret
111+ options : ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret ,
112112) : Promise < ExchangeDeviceCodeGitHubAppResponseWithoutClientSecret > ;
113113
114114export async function exchangeDeviceCode (
115115 options :
116116 | ExchangeDeviceCodeOAuthAppOptions
117117 | ExchangeDeviceCodeGitHubAppOptions
118118 | ExchangeDeviceCodeOAuthAppOptionsWithoutClientSecret
119- | ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret
119+ | ExchangeDeviceCodeGitHubAppOptionsWithoutClientSecret ,
120120) : Promise < any > {
121121 const request =
122122 options . request ||
@@ -130,7 +130,7 @@ export async function exchangeDeviceCode(
130130 client_id : options . clientId ,
131131 device_code : options . code ,
132132 grant_type : "urn:ietf:params:oauth:grant-type:device_code" ,
133- }
133+ } ,
134134 ) ;
135135
136136 const authentication : Record < string , unknown > = {
@@ -151,11 +151,11 @@ export async function exchangeDeviceCode(
151151 ( authentication . refreshToken = response . data . refresh_token ) ,
152152 ( authentication . expiresAt = toTimestamp (
153153 apiTimeInMs ,
154- response . data . expires_in
154+ response . data . expires_in ,
155155 ) ) ,
156156 ( authentication . refreshTokenExpiresAt = toTimestamp (
157157 apiTimeInMs ,
158- response . data . refresh_token_expires_in
158+ response . data . refresh_token_expires_in ,
159159 ) ) ;
160160 }
161161
0 commit comments