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 8e240ad commit 40a6400Copy full SHA for 40a6400
packages/api/proxyHandler.ts
@@ -14,8 +14,7 @@ export const proxyHandler = async (req: Request) => {
14
const protectedContext = getProtectedContext(ctx)
15
const remoteContext = await getRemoteContext(protectedContext)
16
17
- const credentialsExpired = remoteContext.remote.settings.oauth?.credentials
18
- .expires_at
+ const credentialsExpired = remoteContext.remote.settings.oauth?.credentials?.expires_at
19
? new Date(remoteContext.remote.settings.oauth.credentials.expires_at) <
20
new Date()
21
: false
0 commit comments