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

Rewrite the auth example to be based on the increment example #143

Merged
merged 2 commits into from
Oct 8, 2022

Conversation

leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Oct 8, 2022

What

Rewrite the auth example to be based on the increment example

Why

So that all the smaller examples are similar and tell a story for how to add a feature to a contract. This was a suggestion from @tomerweller. I"ve tried it on a few examples and it seems to work pretty well I think.

@leighmcculloch
Copy link
Member Author

leighmcculloch commented Oct 8, 2022

@sisuresh Wdyt of this? If you think this is good I"d like to also update the advanced auth example so it does auth for incrementing a value, but as features on the incremental example. I"d probably remove the admin feature and just make it so there"s a user who is authenticated. Here"s what the docs will look like once updated:

@sisuresh
Copy link
Contributor

sisuresh commented Oct 8, 2022

Yeah I think this makes sense, and the docs for this look great. Thanks!

@leighmcculloch
Copy link
Member Author

Thanks for reviewing. I"ll do the same to the advanced auth example too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants