mirror of
https://github.com/hardillb/node-red-alexa-home-skill-web.git
synced 2026-01-03 19:23:18 +01:00
Add Web Monetization token
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
node_modules/*
|
node_modules/*
|
||||||
|
log/*
|
||||||
test.sh
|
test.sh
|
||||||
test-aws.sh
|
test-aws.sh
|
||||||
|
|||||||
2
oauth.js
2
oauth.js
@@ -112,7 +112,7 @@ server.exchange(oauth2orize.exchange.refreshToken({
|
|||||||
//console.log("Yay!");
|
//console.log("Yay!");
|
||||||
OAuth.RefreshToken.findOne({token: token}, function(error, refresh){
|
OAuth.RefreshToken.findOne({token: token}, function(error, refresh){
|
||||||
if (refresh && refresh.application == application.id) {
|
if (refresh && refresh.application == application.id) {
|
||||||
OAuth.GrantCode.findOne({},function(error, grant){
|
OAuth.GrantCode.findOne({user: refresh.user},function(error, grant){
|
||||||
if (grant && grant.active && grant.application == application.id){
|
if (grant && grant.active && grant.application == application.id){
|
||||||
var newToken = new OAuth.AccessToken({
|
var newToken = new OAuth.AccessToken({
|
||||||
application: refresh.application,
|
application: refresh.application,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="monetization" content="$coil.xrptipbot.com/KZutpQmJRyqRZAK5KGKfug">
|
||||||
<title>Node-RED Alexa Home Skill Bridge</title>
|
<title>Node-RED Alexa Home Skill Bridge</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<!-- Latest compiled and minified CSS -->
|
<!-- Latest compiled and minified CSS -->
|
||||||
@@ -49,4 +50,4 @@
|
|||||||
<a href="/login">Login</a> or <a href="/newuser">Register</a>
|
<a href="/login">Login</a> or <a href="/newuser">Register</a>
|
||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
<div class="container main">
|
<div class="container main">
|
||||||
|
|||||||
Reference in New Issue
Block a user