> ## Documentation Index
> Fetch the complete documentation index at: https://developer.moneyone.in/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK Flow

> SDK integration flow and platform-specific implementation guides

```mermaid theme={null}
flowchart TD
    Start([Start]) --> RetrieveToken[Retrieve Session Token<br/>via sdk-init API]
    RetrieveToken --> InitSDK[Initialize SDK for User<br/>with Session Token]
    InitSDK --> OnboardingPage[User Arrives at<br/>Onboarding Page]
    OnboardingPage --> AALinks[Display Links to<br/>AA Journeys]
    AALinks --> SelectJourney[User Selects<br/>Desired Journey]
    SelectJourney --> GoThrough[User Goes Through<br/>AA Journey]
    GoThrough --> ConsentDecision{User Decision}
    ConsentDecision -->|Approves| ConsentApproved[Consent Approved]
    ConsentDecision -->|Rejects| ConsentRejected[Consent Rejected]
    ConsentRejected --> OnboardingPage
    ConsentApproved --> PortfolioPage[User Navigates to<br/>Portfolio Page]
    PortfolioPage --> DisplayData[Display User's<br/>Financial Data]
    DisplayData --> End([End])
```

<Steps>
  <Step title="Retrieve the session token">
    The session token is retrieved from the sdk-init API which can be accessed using client credentials
  </Step>

  <Step title="Initialize the SDK with the session token">
    Use the session token to initialize the SDK for the user
  </Step>

  <Step title="AA Redirection">
    On the initialising of the SDK, if the user is a new, it comes on the Onboarding Page where the desired AA journey can be selected and the user is redirected to AA for consent
  </Step>

  <Step title="Portfolio Page">
    User completes AA flow, approves/rejects consent, and returns to PFM application, and comes to the Portfolio Page
  </Step>
</Steps>

## Platform-Specific Integration

Choose your platform for detailed implementation guidance:

<CardGroup cols={2}>
  <Card title="Mobile Integration" icon="mobile" href="/pfm/flutter-integration">
    Integration guide for iOS, Android, React Native, and Flutter
  </Card>

  <Card title="Web Integration" icon="globe" href="/pfm/angular-integration">
    Integration guide for web applications and frameworks
  </Card>
</CardGroup>
