Skip to main content
Version: v7.0.x

getUserId

@microblink/blinkid-core


@microblink/blinkid-core / getUserId

Function: getUserId()

getUserId(): string

Gets the user id from local storage, or generates a new one.

This is a workaround for the lack of a user id in the worker scope.

Returns

string

a unique user id