This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const fs = require('fs') | |
const cors = require('cors') | |
const Datastore = require('nedb') | |
const bodyParser = require('body-parser') | |
const jwt = require('jsonwebtoken') | |
const jwksClient = require('jwks-rsa') | |
const axios = require('axios') | |
const qs = require('qs') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(i%3)+!(i%5)*2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RKZClient.setTenantKey(TENANT_KEY).then(function() { | |
// 初期化が終わったら、ユーザーを登録 | |
var userData = {}; | |
return RKZClient.registUser(userData); | |
}).then(function (userData) { | |
// ユーザー登録が終わったらプッシュ通知の初期化(デバイストークンの登録) | |
setupPushNotification(userData.user_access_token); | |
}).catch(function(error) { | |
// エラー時にアラートでエラー内容を表示します | |
alert(JSON.stringify(error, null, ' ')); |