mirror of
https://github.com/hardillb/node-red-alexa-home-skill-web.git
synced 2025-12-11 17:39:44 +01:00
Add Web Monetization token
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
node_modules/*
|
||||
|
||||
log/*
|
||||
test.sh
|
||||
test-aws.sh
|
||||
|
||||
2
oauth.js
2
oauth.js
@@ -112,7 +112,7 @@ server.exchange(oauth2orize.exchange.refreshToken({
|
||||
//console.log("Yay!");
|
||||
OAuth.RefreshToken.findOne({token: token}, function(error, refresh){
|
||||
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){
|
||||
var newToken = new OAuth.AccessToken({
|
||||
application: refresh.application,
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<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>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
@@ -49,4 +50,4 @@
|
||||
<a href="/login">Login</a> or <a href="/newuser">Register</a>
|
||||
<% } %>
|
||||
</div>
|
||||
<div class="container main">
|
||||
<div class="container main">
|
||||
|
||||
Reference in New Issue
Block a user