Skip to content

PaperfireElements/paperfire-anon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<paperfire-anon>

Published on webcomponents.org

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>

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing paperfire-anon

$ polymer serve

Running Tests

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.

About

An element to check anonymous authentication status

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages