registerDevice method
Implementation
Future<void> registerDevice(BuildContext context, String userId) async {
await Provider.of<AmityVM>(context, listen: false)
.login(userId)
.then((value) {
Provider.of<UserVM>(context, listen: false).initAccessToken();
});
}