We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jfarcand/pierre_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
oauth.ts•953 B
// ABOUTME: OAuth utility functions for mobile app
// ABOUTME: Handles OAuth callback URL generation for development and production
// The app scheme defined in app.json
const APP_SCHEME = 'pierre';
/**
* Creates the OAuth callback URL for the mobile app.
*
* In Expo Go development, Linking.createURL() returns exp://... URLs which
* don't work on physical devices. This function returns the custom scheme
* URL directly (pierre://oauth-callback) which works in both development
* and production.
*
* For WebBrowser.openAuthSessionAsync to work, the scheme must be registered:
* - In Expo Go: The pierre:// scheme is handled via the app.json scheme config
* - In standalone builds: Universal links or app links handle the redirect
*/
export function getOAuthCallbackUrl(): string {
// Always use the custom scheme for OAuth callbacks
// This ensures consistent behavior across dev and prod
return `${APP_SCHEME}://oauth-callback`;
}