Mean Stack simple application login with google and apply local strategy both
- By Mahesh Nayak
- Asked Apr 26th, 2022
- 1 Solutions
application
login with google and local strategy apply doth are implement in mean stack
application must inclune bunyan logger
-
Sudarshan Vishwakarma 2 years, 7 months, 2 weeks, 5 days, 9 hours, 20 minutes ago
use local storage after success full login then set success response like
response:let data ={
"email":demo@gmail.com,
"id":1
}
localStograge.setItem("user-data",JSON.stringify(data));then check ngOnInit function local storage exist or is null
ngOnInit(){
if(localStograge.setItem("user-data") && JSON.Parse(localStograge.setItem("user-data")).id){
// manage if condition
}else{
// manage else condition
}
}
Your Answer To Login
Add Answer- #application
- #Express
- #NodeJS
- #Application
- #ionic2
- #nodeJs
- #API
- #module
- #Android
- #NPM
- #notification
- #message
- #push notification
- #NodeJs
- #Loader
- #ionic
- #android
- #native
- #React
- #AngularJs
- #menu
- #map
- #Setup
- #Android
- #card
- #IOS
- #Firebase
- #swipe
- #Login
- #android studio
- #Button
- #Navigation
- #Web
- #database
- #Drawer
- #React Native
- #ReactJS
- #boilerplate
- #React native
- #Redux
- #HTML
- #CSS
- #Studio
- #Slider
- #Validation
- #Form
- #Alert
- #Import
- #Excel
- #express
- #feed
- #ionic3
- #Effect
- #screen
- #Laravel
- #effect
- #Flutter
- #Ios
- #PostgreSQL
- #Database
- #image