Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Support for anonymous users #100

@roryf

Description

@roryf

Is your feature request related to a problem? Please describe.
I would like to use the SDK for anonymous users, i.e. pre-registration in our app.

Describe the solution you'd like
Make user an optional parameter in LDClient#configure. Even if i ignore typescript warnings, the LaunchdarklyReactNativeClient#internalConfigure function requires a user object to configure the native iOS client.

Describe alternatives you've considered
As far as I can tell, the only way around this currently is to generate my own key and pass { key: myGeneratedRandomKey, anonymous: true } to configure.

Additional context
The React client clearly defaults to anonymous user without specifying a key, and the initial user parameter is optional in the underlying LDClient iOS SDK

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions