summary refs log tree commit diff
path: root/src/util/connections/RefreshableConnection.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 16:47:01 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-08-07 16:47:01 +1000
commita25a62aa76694fd4dd45e2a9405449eb4374deb6 (patch)
tree39ee569e01c03a49df013eb2cc665bcf60423db2 /src/util/connections/RefreshableConnection.ts
parentadd login script (diff)
parentFix linter warnings in connections (diff)
downloadserver-a25a62aa76694fd4dd45e2a9405449eb4374deb6.tar.xz
Merge branch 'master' of github.com:spacebarchat/server
Diffstat (limited to 'src/util/connections/RefreshableConnection.ts')
-rw-r--r--src/util/connections/RefreshableConnection.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/connections/RefreshableConnection.ts b/src/util/connections/RefreshableConnection.ts

index fd93adfa..88ad8dab 100644 --- a/src/util/connections/RefreshableConnection.ts +++ b/src/util/connections/RefreshableConnection.ts
@@ -18,13 +18,14 @@ import { ConnectedAccount } from "../entities"; import { ConnectedAccountCommonOAuthTokenResponse } from "../interfaces"; -import Connection from "./Connection"; +import { Connection } from "./Connection"; /** * A connection that can refresh its token. */ -export default abstract class RefreshableConnection extends Connection { +export abstract class RefreshableConnection extends Connection { refreshEnabled = true; + /** * Refreshes the token for a connected account. * @param connectedAccount The connected account to refresh