Skip to main content

Overview

This guide will walk you through the steps to setup a new react native expo project with Google sso and auth proxy.

Goals:

  • Setup Google sso in React Native Expo
  • Setup auth proxy and duo server
  • Setup silent-shard-sdk in React Native Expo
  • Able to perform MPC operations with silent-shard-sdk

Steps to be followed in order:

  1. Setup Google sso in React Native Expo
  2. Get serviceAccountKey.json from firebase
  3. Setup auth proxy and duo server
  4. Install silent-shard-sdk in React Native Expo
  5. Setup silent-shard-sdk in React Native Expo

Why Use Auth Proxy?

  • Security: Adds an authentication layer to protect access to MPC operations
  • Flexible Authentication: Currently supports Firebase Auth with extensible design for other providers
  • WebSocket & HTTP Support: Handles both communication patterns seamlessly

Architecture

The Auth Proxy:

  1. Authenticates incoming requests using Firebase ID tokens
  2. Manages user-to-wallet mappings for access control
  3. Establishes Two-way communication between the Duo Server and Client