Skip to content

Allow Policies to directly be unlocked with a Protector #3

@josephlr

Description

@josephlr

As of right now, Policies can only be unlocked by passing OptionFunc and KeyFunc callbacks. This works in most cases. However, if there are multiple policies protected with the same protector, then the KeyFunc must be called multiple times to unlock them all.

This could be solved by adding an additional unlock method on the Policy struct.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions