feat(mp): add Mercado Pago reauthorization notice and status card components
- Implemented MpReauthNotice component to notify users when reauthorization is needed. - Created MpStatusCard component to display the current status of the Mercado Pago account. - Added utility functions and constants for handling Mercado Pago status and messages. - Introduced hooks for managing the connection and disconnection of Mercado Pago accounts. - Developed a disconnect confirmation modal for user actions. - Added tests for the new functionality and utility functions. - Defined schemas for Mercado Pago account status and callback reasons in shared package.
This commit is contained in:
21
apps/backend/src/modules/mp/lib/index.ts
Normal file
21
apps/backend/src/modules/mp/lib/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export { getMpOAuthConfig, getWebOrigin, type MpOAuthConfig } from './config';
|
||||
export {
|
||||
codeChallengeFromVerifier,
|
||||
newCodeVerifier,
|
||||
newState,
|
||||
openToken,
|
||||
sealToken,
|
||||
} from './crypto';
|
||||
export {
|
||||
buildAuthorizationUrl,
|
||||
exchangeAuthorizationCode,
|
||||
isGrantRejected,
|
||||
MP_AUTHORIZE_URL,
|
||||
MP_SCOPES,
|
||||
MP_TOKEN_URL,
|
||||
MpApiError,
|
||||
type MpAuthorizationUrlInput,
|
||||
type MpTokenResponse,
|
||||
refreshMpTokens,
|
||||
} from './mp-oauth';
|
||||
export { buildMpReturnUrl, type MpCallbackOutcome } from './return-url';
|
||||
Reference in New Issue
Block a user