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:
- Setup Google sso in React Native Expo
- Get serviceAccountKey.json from firebase
- Setup auth proxy and duo server
- Install silent-shard-sdk in React Native Expo
- 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:
- Authenticates incoming requests using Firebase ID tokens
- Manages user-to-wallet mappings for access control
- Establishes Two-way communication between the Duo Server and Client