Coder Social home page Coder Social logo

clubbers's Introduction

clubbers

A social plataform for night clubbers

Working in progress....

Description comming soon...

Todo: Update readme with a good presentation of the project

Screens

See recorded screens

clubbers's People

Contributors

nobrefelipe avatar

Watchers

James Cloos avatar  avatar

clubbers's Issues

Functionality : AUTH

Para checar se o usuario é valido e esta autenticado:
Em CustomHasuraConnect Class antes de enviar a requisicao eu checo se o token é valido, enviando o token para minha API.

Algo como:

/*
essa classe armazena meu usuario logado
CurrentUser{

 function isAuthenticated(){
  envia o token para API `/api/verify`
  se for valido retorna true se nao retorna false
 }; 
 
return {
  token: "my-token"
  user: User(userdata) 
 }
}
*/

var currentUser = CurrentUser(); 
var isAuthenticated = currentUser.isAuthenticated();

// se nao tiver autenticado, redirecionar para login page
if(!isAuthenticated)  Modular.to.pushReplacementNamed('/auth/login');

// se tiver autenticado, continuar com a requisicao 
return 'Bearer ${currentUser.token}';


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.