Skip to content

Register askar method does not work well if not imported on the first line #77

@TimoGlastra

Description

@TimoGlastra

We should tweak the registerAskar method to hold the askar object as part of another object. That way if the reference is updated, it's also updated in other places.

In addition we should make accessing the askar object a getter method, so that it resolves the reference each time.

Currently when you do not import askar on the first line (or above all logic that uses Askar) the reference will often be undefined (i.e. askar-shared is imported before askar-react-native or askar-nodejs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions