A polymer 1.0 element to help manage anonymous authentication
- isAnonymous: Boolean - true if user is anonymous
- uid: String - user's uid
- login: Boolean - if set the element will login in anonymously if firebase.auth() user is null
##Demo
<!-- use firebase-app from polymerfire to initialize app -->
<firebase-app
id="app"
auth-domain="paperfireelements.firebaseapp.com"
database-url="https://paperfireelements.firebaseio.com/"
storage-bucket:
"paperfireelements.appspot.com"
api-key="AIzaSyBV90mRwJOGY7uO_RVWkchk9oUBx2E-sac"
messagingSender-id="637337808974"></firebase-app>
<paperfire-anon is-anonymous="{{isAnon}}" uid="{{uid}}" login>...</paperfire-anon>
<pre>isAnonymous: [[isAnon]]</pre>
<pre>uid: [[uid]]</pre>
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your application locally.
$ polymer serve
tests haven't been written yet :$
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.