siltalau
siltalau

Reputation: 549

Ionic 2 non-interactive authentication

I'm building a mobile app for iOS and Android using ionic 2. I want the users' accounts to be device based so the users do not need to manually register or authenticate. How is this usually achieved?

Upvotes: 1

Views: 24

Answers (1)

Diluk Angelo
Diluk Angelo

Reputation: 1503

why dont you use this plugin and get the device info Ionic Native Device

So you can access these information

  • Device uuid
  • Manufacturer
  • Serial

And then create a unique ID by combining or with any Algo Example :

import { Device } from '@ionic-native/device';

loginid:any;
constructor(private device: Device) {

    this.loginid = device.uuid+device.serial;


 }

Use this LoginId to Auth the user Automatically. Hope this helps. Thanks :)

Upvotes: 2

Related Questions