()
| 6 | | undefined |
| 7 | |
| 8 | function getCurrentProviderSession(): ProviderSession { |
| 9 | try { |
| 10 | /* eslint-disable @typescript-eslint/no-require-imports */ |
| 11 | const { getAuthRuntime } = |
| 12 | require('../auth/runtime/AuthRuntime.js') as typeof import('../auth/runtime/AuthRuntime.js') |
| 13 | /* eslint-enable @typescript-eslint/no-require-imports */ |
| 14 | return getAuthRuntime().getCurrentSession() |
| 15 | } catch { |
| 16 | return null |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | export function isThirdPartyProviderSession( |
| 21 | session: ProviderSession, |
no test coverage detected