UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

13 lines (9 loc) 456 B
'use client' 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const getActiveOauthCredential = (user) => { var _a; return (_a = user === null || user === void 0 ? void 0 : user.verifiedCredentials) === null || _a === void 0 ? void 0 : _a.find((credentials) => credentials.format === 'oauth' && credentials.id === user.lastVerifiedCredentialId); }; exports.getActiveOauthCredential = getActiveOauthCredential;