New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@marjara/fireauth

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marjara/fireauth

authentication with firebase REST API

  • 0.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Getting Started with AureAuth

This project was bootstrapped with Create React App.

This packagae will allow you to sign up or sign in any new or existing user to your app.

how to install

npm - @marjara/fireauth

usage and example

import React, {Component} from 'react' import Login from '@marjara/fireauth/dist/'

class App extends Component { state={ isAuthenticated:false }

render(){

const webAPI =[you application AP from firebase console];

const restAPI={
signUp:'https://identitytoolkit.googleapis.com/v1/accounts:signUp?key='+webAPI,
login:'https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key='+webAPI,
verify:'https://identitytoolkit.googleapis.com/v1/accounts:sendOobCode?key='+webAPI,
verifyOK:'https://identitytoolkit.googleapis.com/v1/accounts:update?key='+webAPI,
}

    const authHandler=(val)=>{
        this.setState({isAuthenticated:val.isAuthenticated})
    }

    if (!this.state.isAuthenticated){
        return <Login restAPI = {restAPI}
        onAuth={(val)=>{authHandler(val)}} />
    }
    ### val variable will return the tokenid, display name and the email id and other data objects from teh firebase API

    return(
        <div> welcom to app </div>

        )
        }
    }

export default App;

FAQs

Package last updated on 27 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc