Comments
This commit is contained in:
@@ -24,8 +24,14 @@ export function useNativeUserState() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// MUST ensure we're the correct user first
|
/**
|
||||||
|
* MUST ensure we're the correct user first.
|
||||||
|
*/
|
||||||
await Purchases.logIn(currentAccount.did)
|
await Purchases.logIn(currentAccount.did)
|
||||||
|
/**
|
||||||
|
* Attempt to restore purchases for the identified user.
|
||||||
|
* @see https://www.revenuecat.com/docs/getting-started/restoring-purchases
|
||||||
|
*/
|
||||||
await Purchases.restorePurchases()
|
await Purchases.restorePurchases()
|
||||||
return {restricted: 'no'}
|
return {restricted: 'no'}
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user