View clink.lua
View hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
View authControllerWithErrorHandling.js
import GoogleAuth from 'google-auth-library';
import { googleAuthClientId } from '../../src/constants/config';
import { User } from '../utilities/database';
import { path } from 'ramda';
const checkUserToken = token => {
return new Promise((resolve, reject) => {
const auth = new GoogleAuth();
const client = new auth.OAuth2(googleAuthClientId, '', '');
client.verifyIdToken(token, googleAuthClientId, (error, login) => {
View authController.js
import GoogleAuth from 'google-auth-library';
import { googleAuthClientId } from '../../src/constants/config';
import { User } from '../utilities/database';
import { path } from 'ramda';
const checkUserToken = token => {
return new Promise((resolve, reject) => {
const auth = new GoogleAuth();
const client = new auth.OAuth2(googleAuthClientId, '', '');
client.verifyIdToken(token, googleAuthClientId, (error, login) => {