Glyph Constants
This document describes the key constants used in the Glyph integration.
GLYPH_ICON_URL
The URL for the Glyph wallet icon used in various UI components.
GLYPH_PRIVY_APP_ID
The Privy application ID for Glyph, used for authentication and wallet integration.
GLYPH_APP_LOGIN_METHOD
A constant that defines the login method for Glyph in the Privy authentication system.
typescript
export const GLYPH_APP_LOGIN_METHOD: LoginMethodOrderOption = `privy:${GLYPH_PRIVY_APP_ID}`;Usage
tsx
import {
GlyphPrivyProvider,
GLYPH_APP_LOGIN_METHOD,
} from "@use-glyph/sdk-react";
function App() {
return (
<GlyphPrivyProvider
config={{
loginMethodsAndOrder: { primary: [GLYPH_APP_LOGIN_METHOD, "google"] },
}}
>
{/* Your application components */}
</GlyphPrivyProvider>
);
}Best Practices
- Always use these constants instead of hardcoding values
