```ts
import { Auth } from 'aws-amplify';
export async function forgetDevice() {
try {
await Auth.forgetDevice();
} catch (error) {
console.log('Error forgetting device', error);
}
}
```
```js
import { Auth } from 'aws-amplify';
async function forgetDevice() {
try {
await Auth.forgetDevice();
} catch (error) {
console.log('Error forgetting device', error);
}
}
```