@explorins/pers-sdk
Version:
Platform-agnostic SDK for PERS (Phygital Experience Rewards System)
16 lines (15 loc) • 568 B
text/typescript
/**
* Simple Auth Configuration Interface - Dev-Friendly Alternative
*
* Instead of implementing AuthProvider, developers can use this simple config
* which will be automatically converted to a full AuthProvider implementation.
*/
export interface SimpleAuthConfig {
authType?: 'admin' | 'user' | 'firebase';
token?: string;
tokenProvider?: () => Promise<string | null>;
projectKey?: string;
onTokenExpired?: () => Promise<void>;
// Advanced: for reactive token updates after refresh
onTokenRefreshed?: (newToken: string) => void;
}