1# IAM Subsystem ChangeLog 2 3## cl.useriam.1 Change of @ohos.useriam.userAuthIcon for Export 4 5**Access Level** 6 7Public API 8 9**Reason for Change** 10 11**userAuthIcon** does not comply with the naming rules for export and has been changed to **UserAuthIcon**. 12 13**Change Impact** 14 15This change is incompatible and will cause a compilation error. The error information is as follows: 16``` 17'"@kit.UserAuthenticationKit"' has no exported member named 'userAuthIcon'. Did you mean 'UserAuthIcon'? <ArkTSCheck>. 18``` 19 20**Start API Level** 21 2212 23 24**Change Since** 25 26OpenHarmony SDK 5.0.0.31 27 28**Before the Change** 29```ts 30import { userAuth, userAuthIcon } from '@kit.UserAuthenticationKit'; 31``` 32 33**After the Change** 34```ts 35import { userAuth, UserAuthIcon } from '@kit.UserAuthenticationKit'; 36``` 37 38**Adaptation Guide** 39```ts 40import { userAuth, UserAuthIcon } from '@kit.UserAuthenticationKit'; 41 42@Entry 43@Component 44struct Index { 45 authParam: userAuth.AuthParam = { 46 challenge: new Uint8Array([49, 49, 49, 49, 49, 49]), 47 authType: [userAuth.UserAuthType.FACE, userAuth.UserAuthType.PIN], 48 authTrustLevel: userAuth.AuthTrustLevel.ATL3 49 }; 50 widgetParam: userAuth.WidgetParam = { 51 title: 'Verify identity' 52 }; 53 54 build() { 55 Row() { 56 Column() { 57 UserAuthIcon({ 58 authParam: this.authParam, 59 widgetParam: this.widgetParam, 60 iconHeight: 200, 61 iconColor: Color.Blue, 62 onIconClick: () => { 63 console.info('The user clicked the icon.'); 64 }, 65 onAuthResult: (result: userAuth.UserAuthResult) => { 66 console.info('Get user auth result, result = ' + JSON.stringify(result)); 67 } 68 }) 69 } 70 } 71 } 72} 73``` 74