• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Can I check duplicated login?

Scheduled Pinned Locked Moved General
4 Posts 2 Posters 260 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LEE JONG GUN
    wrote on last edited by LEE JONG GUN
    #1

    Hello

    I asked before about this.

    and I heard braincloud did (token check?)

    so I want to make Only one device can login with same account

    so I found some error code for check this

    INVALID_DEVICE_TOKEN

    is it return when duplicate login?

    thank you

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #2

    Are you wanting to ensure that a user can't sign in from multiple devices EVER - or at the same time?

    brainCloud already enforces a single concurrent login session for an account. But it doesn't block the 2nd login - instead it invalidates the first one. This is done intentionally - because otherwise if a user session were to crash - it might block subsequent logins from succeeding.

    The setting to control how many concurrent logins are allowed in your app can be found on the Design > Core App Info > Advanced Settings > Session Behavior screen.

    2023-09-10_09-49-41.png

    From what I can see in our system, INVALID_DEVICE_TOKEN indicates that the push notification token being registered against a user account is invalid (it would generally mean that it is empty string).

    Hope that helps!

    Paul.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    LEE JONG GUN
    wrote on last edited by
    #3

    yes!
    it invalidates the first one <<
    how can i check older device is invalidates?
    i want notice to device(old,first) is invalidated(when try to save or other)
    thank you

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #4

    Well - there's no great way to tell until you try doing an operation.

    You could try doing a simple ReadServerTime() call - and if that fails - the session isn't good anymore...

    http://getbraincloud.com/apidocs/apiref/?objective_c#capi-time-readservertime

    Hope that helps!

    Paul.

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users