Skip to content

Conversation

@stvkoch
Copy link

@stvkoch stvkoch commented Aug 22, 2025

🚀 Passkey Mobile App Shell for Giano

Hey team! I've implemented a solution to address the passkey gap in mobile environments, particularly for Giano.

The Problem:

A common pattern we use in some projects is creating a mobile app as a shell to run web apps. However, this approach lacks proper passkey examples, especially for Giano, because mobile apps using WebView components use a UI Controller that doesn't support passkey. While in-app browsers with session attributes enabled can support passkey, this functionality isn't available in WebView UI View Controllers.

The Solution:

I created a React Native mobile app shell that bridges the gap between web passkey implementations and native mobile capabilities. Here's what it does:

✅ Native Passkey Support: The app uses react-native-passkeys to handle iOS passkey creation and authentication natively
✅ Web App Integration: Runs web apps in a WebView with a custom bridge that intercepts passkey requests
✅ Seamless Bridge: When the web app calls navigator.credentials.get() or navigator.credentials.create(), the requests are automatically routed to the native passkey implementation
✅ Cross-Platform Ready: Built with Expo for easy deployment to both iOS and Android

Key Components:

Browser component with WebView integration
Custom bridge script that intercepts credential requests
Native passkey handling through React Native Passkeys
Message passing between web app and native layer

Tech Stack:

React Native + Expo
react-native-passkeys for native passkey support
react-native-webview for web app hosting
TypeScript for type safety

This approach allows us to run any web-based passkey example (like our custom Giano examples) as a mobile app while maintaining full passkey functionality that users expect on mobile devices.
The implementation follows our established patterns and is ready for testing and integration! 🚀

- Created environment configuration files for development, production, and staging.
- Added .gitignore to exclude unnecessary files and directories.
- Set up ESLint and Prettier configurations for code quality.
- Implemented basic app structure with main App component and Browser component.
- Included necessary scripts for building and testing the application.
- Established GitHub workflows for CI/CD, including linting, testing, and EAS builds.
- Added prompts for common tasks and validation scripts for i18next syntax.
- Included assets such as icons and splash screens.
@coderabbitai
Copy link

coderabbitai bot commented Aug 22, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/react-native-shell-for-giano-custom-example

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@stvkoch stvkoch changed the base branch from main to portafino-minimum-req August 22, 2025 16:55
- Introduced headers in next.config.js to serve the Apple App Site Association file.
- Added apple-app-site-association file for web credentials configuration.
- Created assetlinks.json for Android app linking and permissions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants