Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify API #5

Open
joebalancio opened this issue Nov 2, 2015 · 0 comments
Open

Simplify API #5

joebalancio opened this issue Nov 2, 2015 · 0 comments
Assignees
Labels

Comments

@joebalancio
Copy link
Owner

Should the register prefix be dropped?

// Register voter
authorizer.voter('is-registered', isRegisteredVoter)

// Retrieve voter
authorizer.voter('is-registered')

// Register poll
authorizer.poll('user', 'view', 'movie', ['is-registered'])

Should constants by flattened on authzy itself?

authzy.constants.ALLOW
authzy.ALLOW
@joebalancio joebalancio self-assigned this Nov 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant