The current way of securely storing data is implying that the context is around username, password and server but there might exist an arbitrary situation when we need to store some data and while the current approach (just described above) does/can work it is semantically awkward to use it thus a function name like NativeBiometric.setData({key: string, value: string }) would be more applicable for whatever use case. For example, we may want to securely store a pin code and the current interface (server/username/password) would not be the most appropriate (semantically).
The current way of securely storing data is implying that the context is around username, password and server but there might exist an arbitrary situation when we need to store some data and while the current approach (just described above) does/can work it is semantically awkward to use it thus a function name like NativeBiometric.setData({key: string, value: string }) would be more applicable for whatever use case. For example, we may want to securely store a pin code and the current interface (server/username/password) would not be the most appropriate (semantically).