File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/auth/src/providers/cognito/types Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import {
10
10
AWSAuthUser ,
11
11
AuthCodeDeliveryDetails ,
12
12
AuthDevice ,
13
- AuthUserAttribute ,
14
13
} from '../../../types' ;
15
14
import { AuthProvider } from '../../../types/inputs' ;
16
15
@@ -89,11 +88,15 @@ export type AutoSignInEventData =
89
88
| {
90
89
event : 'autoSignIn' ;
91
90
} ;
91
+
92
+ type DeviceAttributeKey = 'device_status' | 'device_name' | 'last_ip_used' ;
93
+
92
94
/**
93
95
* Holds the device specific information along with it's id and name.
94
96
*/
95
97
export type AWSAuthDevice = AuthDevice & {
96
- attributes : AuthUserAttribute < UserAttributeKey > ;
98
+ attributes : Partial < Record < DeviceAttributeKey , string > > &
99
+ Record < string , string > ;
97
100
createDate ?: Date ;
98
101
lastAuthenticatedDate ?: Date ;
99
102
lastModifiedDate ?: Date ;
You can’t perform that action at this time.
0 commit comments