From a8b19d5a9c40168d65747481a330913c5df7d804 Mon Sep 17 00:00:00 2001 From: leoafarias Date: Fri, 30 Oct 2020 09:41:13 -0400 Subject: [PATCH 1/4] Changed AuthProvider type --- packages/ra-core/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ra-core/src/types.ts b/packages/ra-core/src/types.ts index 77182707746..fd9e80e829e 100644 --- a/packages/ra-core/src/types.ts +++ b/packages/ra-core/src/types.ts @@ -68,8 +68,8 @@ export interface UserIdentity { export type AuthProvider = { login: (params: any) => Promise; logout: (params: any) => Promise; - checkAuth: (params: any) => Promise; - checkError: (error: any) => Promise; + checkAuth: (params: any) => Promise; + checkError: (error: any) => Promise; getPermissions: (params: any) => Promise; getIdentity?: () => Promise; [key: string]: any; From ecb716dd680a2f99a78f9ca5fc1dab5fa4df78e0 Mon Sep 17 00:00:00 2001 From: leoafarias Date: Thu, 5 Nov 2020 10:19:11 -0500 Subject: [PATCH 2/4] Added generic with any as default --- packages/ra-core/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ra-core/src/types.ts b/packages/ra-core/src/types.ts index fd9e80e829e..066bf5ca983 100644 --- a/packages/ra-core/src/types.ts +++ b/packages/ra-core/src/types.ts @@ -68,8 +68,8 @@ export interface UserIdentity { export type AuthProvider = { login: (params: any) => Promise; logout: (params: any) => Promise; - checkAuth: (params: any) => Promise; - checkError: (error: any) => Promise; + checkAuth: (error: any) => Promise; + checkError: (error: any) => Promise; getPermissions: (params: any) => Promise; getIdentity?: () => Promise; [key: string]: any; From 5f1fd69e34cad088f048871f1d7d840be74612b4 Mon Sep 17 00:00:00 2001 From: leoafarias Date: Thu, 5 Nov 2020 10:25:37 -0500 Subject: [PATCH 3/4] Resolve conflict --- packages/ra-core/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/types.ts b/packages/ra-core/src/types.ts index 066bf5ca983..7f7e5bc3cf6 100644 --- a/packages/ra-core/src/types.ts +++ b/packages/ra-core/src/types.ts @@ -67,7 +67,7 @@ export interface UserIdentity { */ export type AuthProvider = { login: (params: any) => Promise; - logout: (params: any) => Promise; + logout: (params: any) => Promise; checkAuth: (error: any) => Promise; checkError: (error: any) => Promise; getPermissions: (params: any) => Promise; From 3f704f6aac85d5518be8910a0d28d19cd2b6e687 Mon Sep 17 00:00:00 2001 From: leoafarias Date: Mon, 9 Nov 2020 09:26:41 -0500 Subject: [PATCH 4/4] Fixed naming mistake --- packages/ra-core/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-core/src/types.ts b/packages/ra-core/src/types.ts index 7f7e5bc3cf6..33e0c19ad44 100644 --- a/packages/ra-core/src/types.ts +++ b/packages/ra-core/src/types.ts @@ -68,7 +68,7 @@ export interface UserIdentity { export type AuthProvider = { login: (params: any) => Promise; logout: (params: any) => Promise; - checkAuth: (error: any) => Promise; + checkAuth: (params: any) => Promise; checkError: (error: any) => Promise; getPermissions: (params: any) => Promise; getIdentity?: () => Promise;