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 {
1010 AWSAuthUser ,
1111 AuthCodeDeliveryDetails ,
1212 AuthDevice ,
13- AuthUserAttribute ,
1413} from '../../../types' ;
1514import { AuthProvider } from '../../../types/inputs' ;
1615
@@ -89,11 +88,15 @@ export type AutoSignInEventData =
8988 | {
9089 event : 'autoSignIn' ;
9190 } ;
91+
92+ type DeviceAttributeKey = 'device_status' | 'device_name' | 'last_ip_used' ;
93+
9294/**
9395 * Holds the device specific information along with it's id and name.
9496 */
9597export type AWSAuthDevice = AuthDevice & {
96- attributes : AuthUserAttribute < UserAttributeKey > ;
98+ attributes : Partial < Record < DeviceAttributeKey , string > > &
99+ Record < string , string > ;
97100 createDate ?: Date ;
98101 lastAuthenticatedDate ?: Date ;
99102 lastModifiedDate ?: Date ;
You can’t perform that action at this time.
0 commit comments