()
| 37 | | null |
| 38 | |
| 39 | function getCurrentOAuthClientSession(): OAuthClientSession { |
| 40 | try { |
| 41 | /* eslint-disable @typescript-eslint/no-require-imports */ |
| 42 | const { getAuthRuntime } = |
| 43 | require('../../auth/runtime/AuthRuntime.js') as typeof import('../../auth/runtime/AuthRuntime.js') |
| 44 | /* eslint-enable @typescript-eslint/no-require-imports */ |
| 45 | return getAuthRuntime().getCurrentSession() |
| 46 | } catch { |
| 47 | return null |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | async function resolveOAuthClientSession(params?: { |
| 52 | allowRefresh?: boolean |
no test coverage detected