Conversations

OAuth2 setup guide

Just now

API rate limiting

2 hrs ago

Database migration help

Yesterday

Docker compose config

Mar 27

CI/CD pipeline setup

Mar 26

How do I set up OAuth2 PKCE for a mobile app?

To set up OAuth2 PKCE for a mobile app, follow these steps:

  1. Generate a cryptographically random code_verifier (43-128 characters) [1]
  2. Compute the code_challenge using SHA256: base64url(sha256(verifier)) [1]
  3. Include code_challenge and code_challenge_method=S256 in the authorization request [2]
  4. Store the verifier securely (Keychain on iOS, EncryptedSharedPrefs on Android) [3]
  5. Send the original verifier during the token exchange [2]

This is now mandatory for all public clients per the OAuth 2.1 draft specification.

Confidence: 96% · 3 sources cited
What library should I use for React Native?

For React Native, the recommended library is react-native-app-auth [3]. It:

  • Supports PKCE out of the box
  • Handles both iOS and Android securely
  • Uses the system browser (not WebView) per best practices
  • Supports refresh token rotation

Install with: npm install react-native-app-auth

Confidence: 92% · 1 source cited

Sources Referenced

[1] 98% match

RFC 7636 — PKCE Specification

PDF

[2] 94% match

OAuth 2.1 Draft — Section 4.1

URL

[3] 87% match

Mobile Auth Best Practices

Guide

Knowledge Base

API Documentation

45 documents

✓ Synced

Product Guide

23 documents

✓ Synced

FAQ & Support

89 documents

✓ Synced

Knowledge Base

Manage your connected data sources and documents.

Upload documents, connect APIs, or add URLs to build your knowledge base.

Analytics

Track usage, accuracy, and performance metrics.

Analytics dashboard coming soon. Query volume, citation accuracy, and response times will appear here.

Settings

Configure your RAGChat instance.

Model selection, retrieval parameters, and API key management will be configured here.