(
session:
| Pick<ResolvedAuthSession, 'identity' | 'principalSource' | 'subscription'>
| null
| undefined,
)
| 49 | } |
| 50 | |
| 51 | export function canUseGroveForSession( |
| 52 | session: |
| 53 | | Pick<ResolvedAuthSession, 'identity' | 'principalSource' | 'subscription'> |
| 54 | | null |
| 55 | | undefined, |
| 56 | ): boolean { |
| 57 | return ( |
| 58 | session?.principalSource === 'managed_oauth' && |
| 59 | hasConsumerSubscription(session.subscription.subscriptionType) && |
| 60 | Boolean(session.identity.accountUuid) |
| 61 | ) |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Get the current Grove settings for the user account. |
no test coverage detected