{"version":3,"file":"shouldTryRefresh.mjs","sources":["../../../../../../core/src/shouldTryRefresh.ts"],"sourcesContent":["import { B2BState, ConsumerState } from './public';\n\n// We should try refreshing the session if there exists a cached session in\n// state that might be stale. Otherwise, we know there is no session, so there's\n// no need.\nexport const shouldTryRefresh = <T extends ConsumerState | B2BState>(state: T | null) => !!state?.session;\n"],"names":["shouldTryRefresh","state","session"],"mappings":"AAEA;AACA;AACA;MACaA,gBAAAA,GAAmB,CAAqCC,QAAoB,CAAC,CAACA,OAAOC;;;;"}