@tinacms/schema-tools 1.4.14 → 1.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -288,7 +288,10 @@ declare type TokenObject = {
288
288
  access_token?: string;
289
289
  refresh_token?: string;
290
290
  };
291
- export declare type LoginStrategy = 'UsernamePassword' | 'Redirect';
291
+ export declare type LoginStrategy = 'UsernamePassword' | 'Redirect' | 'LoginScreen';
292
+ export declare type LoginScreenProps = {
293
+ handleAuthenticate: (props?: Record<string, string>) => Promise<void>;
294
+ };
292
295
  export interface AuthProvider {
293
296
  /**
294
297
  * Used for getting the token from the custom auth provider
@@ -327,6 +330,7 @@ export interface AuthProvider {
327
330
  isAuthorized: (context?: any) => Promise<boolean>;
328
331
  isAuthenticated: () => Promise<boolean>;
329
332
  getLoginStrategy: () => LoginStrategy;
333
+ getLoginScreen: () => FC<LoginScreenProps> | null;
330
334
  getSessionProvider: () => FC<{
331
335
  basePath?: string;
332
336
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "exports": {