mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-19 14:12:40 +00:00
Update Version number & cleanup
This commit is contained in:
21
changelog.md
21
changelog.md
@@ -1,5 +1,8 @@
|
|||||||
# changelog
|
# changelog
|
||||||
|
|
||||||
|
### Wednesday, 07/10/2020 - v2.10.0
|
||||||
|
- Google Drive integration -- Sign in with your Google account to link it with your Homebrewery profile. A new button in the Edit page will let you transfer your file to your personal Google Drive storage, and Google will keep a backup of each version! No more lost work surprises!
|
||||||
|
|
||||||
### Friday, 28/08/2020 - v2.9.2
|
### Friday, 28/08/2020 - v2.9.2
|
||||||
- Many dependency updates
|
- Many dependency updates
|
||||||
- Finally fixed this changelog page to not run off the edge :P
|
- Finally fixed this changelog page to not run off the edge :P
|
||||||
@@ -40,11 +43,13 @@
|
|||||||
### Friday, 03/03/2017 - v2.7.3
|
### Friday, 03/03/2017 - v2.7.3
|
||||||
- Increasing the range on the Partial Page Rendering for a quick-fix for it getting out of sync on long brews.
|
- Increasing the range on the Partial Page Rendering for a quick-fix for it getting out of sync on long brews.
|
||||||
|
|
||||||
|
```
|
||||||
|
```
|
||||||
|
|
||||||
### Saturday, 18/02/2017 - v2.7.2
|
### Saturday, 18/02/2017 - v2.7.2
|
||||||
- Adding ability to delete a brew from the user page, incase the user creates a brew that makes the edit page unrender-able. (re:309)
|
- Adding ability to delete a brew from the user page, incase the user creates a brew that makes the edit page unrender-able. (re:309)
|
||||||
|
|
||||||
```
|
|
||||||
```
|
|
||||||
|
|
||||||
### Thursday, 19/01/2017 - v2.7.0
|
### Thursday, 19/01/2017 - v2.7.0
|
||||||
- Fixed saving multiple authors and multiple systems on brew metadata (thanks u/PalaNolho re:282)
|
- Fixed saving multiple authors and multiple systems on brew metadata (thanks u/PalaNolho re:282)
|
||||||
@@ -81,13 +86,13 @@
|
|||||||
- Added in a snippet for a split table
|
- Added in a snippet for a split table
|
||||||
- Added an account nav item to new page
|
- Added an account nav item to new page
|
||||||
|
|
||||||
|
\page
|
||||||
|
|
||||||
### Sunday, 27/11/2016 - v2.5.1
|
### Sunday, 27/11/2016 - v2.5.1
|
||||||
- Fixed the column rendering on the new user page. Really should have tested that better
|
- Fixed the column rendering on the new user page. Really should have tested that better
|
||||||
- Added a hover tooltip to fully read the brew description
|
- Added a hover tooltip to fully read the brew description
|
||||||
- Made the brew items take up only 25% allowing you to view more per row.
|
- Made the brew items take up only 25% allowing you to view more per row.
|
||||||
|
|
||||||
\page
|
|
||||||
|
|
||||||
### Wednesday, 23/11/2016 - v2.5.0
|
### Wednesday, 23/11/2016 - v2.5.0
|
||||||
- Metadata can now be added to brews
|
- Metadata can now be added to brews
|
||||||
- Added a metadata editor onto the edit and new pages
|
- Added a metadata editor onto the edit and new pages
|
||||||
@@ -125,6 +130,9 @@
|
|||||||
### Friday, 29/07/2016 - v2.2.7
|
### Friday, 29/07/2016 - v2.2.7
|
||||||
- Adding in descriptive note blocks. (Thanks calculuschild!)
|
- Adding in descriptive note blocks. (Thanks calculuschild!)
|
||||||
|
|
||||||
|
```
|
||||||
|
```
|
||||||
|
|
||||||
### Thursday, 07/07/2016 - v2.2.6
|
### Thursday, 07/07/2016 - v2.2.6
|
||||||
- Added a new nav item on the homepage for accessing both recently viewed and edited brews (thanks [ChosenSeraph!](https://github.com/stolksdorf/homebrewery/issues/147))
|
- Added a new nav item on the homepage for accessing both recently viewed and edited brews (thanks [ChosenSeraph!](https://github.com/stolksdorf/homebrewery/issues/147))
|
||||||
|
|
||||||
@@ -149,6 +157,9 @@
|
|||||||
- Finally added a syntax for doing spell lists. A bit in-depth about why this took so long. Essentially I'm running out of syntax to use in stardard Markdown. There are too many unique elements in the PHB-style to be mapped. I solved this earlier by stacking certain elements together (eg. an `<hr>` before a `blockquote` turns it into moster state block), but those are getting unweildly. I would like to simply wrap these in `div`s with classes, but unfortunately Markdown stops processing when within HTML blocks. To get around this I wrote my own override to the Markdown parser and lexer to process Markdown within a simple div class wrapper. This should open the door for more unique syntaxes in the future. Big step!
|
- Finally added a syntax for doing spell lists. A bit in-depth about why this took so long. Essentially I'm running out of syntax to use in stardard Markdown. There are too many unique elements in the PHB-style to be mapped. I solved this earlier by stacking certain elements together (eg. an `<hr>` before a `blockquote` turns it into moster state block), but those are getting unweildly. I would like to simply wrap these in `div`s with classes, but unfortunately Markdown stops processing when within HTML blocks. To get around this I wrote my own override to the Markdown parser and lexer to process Markdown within a simple div class wrapper. This should open the door for more unique syntaxes in the future. Big step!
|
||||||
- Override Ctrl+P (and cmd+P) to launch to the print page. Many people try to just print either the editing or share page to get a PDF. While this dones;t make much sense, I do get a ton of issues about it. So now if you try to do this, it'll just bring you imediately to the print page. Everybody wins!
|
- Override Ctrl+P (and cmd+P) to launch to the print page. Many people try to just print either the editing or share page to get a PDF. While this dones;t make much sense, I do get a ton of issues about it. So now if you try to do this, it'll just bring you imediately to the print page. Everybody wins!
|
||||||
- The onboarding flow has also been confusing a few users (Homepage -> new -> save -> edit page). If you edit the Homepage text now, a Call to Action to save your work will pop-up.
|
- The onboarding flow has also been confusing a few users (Homepage -> new -> save -> edit page). If you edit the Homepage text now, a Call to Action to save your work will pop-up.
|
||||||
|
|
||||||
|
\page
|
||||||
|
|
||||||
- Added a 'Recently Edited' and 'Recently Viewed' nav item to the edit and share page respectively. Each will remember the last 8 items you edited or viewed and when you viewed it. Makes use of the new title attribute of brews to easy navigatation.
|
- Added a 'Recently Edited' and 'Recently Viewed' nav item to the edit and share page respectively. Each will remember the last 8 items you edited or viewed and when you viewed it. Makes use of the new title attribute of brews to easy navigatation.
|
||||||
- Paragraphs now indent properly after lists (thanks u/slitjen!)
|
- Paragraphs now indent properly after lists (thanks u/slitjen!)
|
||||||
|
|
||||||
@@ -156,8 +167,6 @@
|
|||||||
- Updated the issue template for (hopefully) better reporting
|
- Updated the issue template for (hopefully) better reporting
|
||||||
- Added suggestion to use chrome while PDF printing
|
- Added suggestion to use chrome while PDF printing
|
||||||
|
|
||||||
\page
|
|
||||||
|
|
||||||
### Wednesday, 25/05/2016 -v2.0.5
|
### Wednesday, 25/05/2016 -v2.0.5
|
||||||
- The class table generators have the proper ability score improvement progression.
|
- The class table generators have the proper ability score improvement progression.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const createClass = require('create-react-class');
|
|||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const cx = require('classnames'); //Unused variable
|
const cx = require('classnames'); //Unused variable
|
||||||
|
|
||||||
const DISMISS_KEY = 'dismiss_notification7-24-19';
|
const DISMISS_KEY = 'dismiss_notification7-10-20';
|
||||||
|
|
||||||
const NotificationPopup = createClass({
|
const NotificationPopup = createClass({
|
||||||
getInitialState : function() {
|
getInitialState : function() {
|
||||||
@@ -22,17 +22,22 @@ const NotificationPopup = createClass({
|
|||||||
notifications : {
|
notifications : {
|
||||||
psa : function(){
|
psa : function(){
|
||||||
return <li key='psa'>
|
return <li key='psa'>
|
||||||
<em>Known bug: Grey Shadow Boxes </em> <br />
|
<em>Google Drive Integration!</em> <br />
|
||||||
The shadows around certain brew elements such as notes and statblocks might appear as a solid grey box when generating a PDF.
|
We have added Google Drive integration to the Homebrewery! <a target='_blank' href='https://www.naturalcrit.com/login'>Sign in</a> with
|
||||||
<a target='_blank' href='https://old.reddit.com/r/homebrewery/comments/ch3v0d/psa_grey_boxesshadows_around_notes_stat_blocks_etc/'>
|
your Google account to link it with your Homebrewery profile. A new button in the Edit page will let you transfer your file to your personal
|
||||||
See this Reddit post
|
Google Drive storage, and Google will keep a backup of each version! No more lost work surprises!
|
||||||
</a> for updates and possible workarounds.
|
<br /><br />
|
||||||
|
However, we are aware that there may be uncaught bugs. We encourage you to copy your brew into a text document before transferring to Google
|
||||||
|
Drive just in case any issues arise as this update is rolled out.
|
||||||
|
<br /><br />
|
||||||
|
<b>Note:</b> Transferring an existing brew to Google Drive will change the edit and share links of your document. If you have shared your
|
||||||
|
document online, remember to update the links there as well.
|
||||||
</li>;
|
</li>;
|
||||||
},
|
},
|
||||||
faq : function(){
|
faq : function(){
|
||||||
return <li key='faq'>
|
return <li key='faq'>
|
||||||
<em>Protect your work! </em> <br />
|
<em>Protect your work! </em> <br />
|
||||||
At the moment we do not save a history of your projects, so please make frequent backups of your brews!
|
If you opt not to use your Google Drive, keep in mind that we do not save a history of your projects. Please make frequent backups of your brews!
|
||||||
<a target='_blank' href='https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/'>
|
<a target='_blank' href='https://www.reddit.com/r/homebrewery/comments/adh6lh/faqs_psas_announcements/'>
|
||||||
See the FAQ
|
See the FAQ
|
||||||
</a> to learn how to avoid losing your work!
|
</a> to learn how to avoid losing your work!
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
.notificationPopup{
|
.notificationPopup{
|
||||||
position : relative;
|
position : relative;
|
||||||
float : right;
|
float : right;
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
width : 350px;
|
width : 350px;
|
||||||
padding : 20px;
|
padding : 15px;
|
||||||
padding-bottom : 10px;
|
padding-bottom : 10px;
|
||||||
padding-left : 85px;
|
padding-left : 55px;
|
||||||
background-color : @blue;
|
background-color : @blue;
|
||||||
color : white;
|
color : white;
|
||||||
a{
|
a{
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
}
|
}
|
||||||
i.info{
|
i.info{
|
||||||
position : absolute;
|
position : absolute;
|
||||||
top : 24px;
|
top : 12px;
|
||||||
left : 24px;
|
left : 12px;
|
||||||
opacity : 0.8;
|
opacity : 0.8;
|
||||||
font-size : 2.5em;
|
font-size : 2.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,9 +192,7 @@ const EditPage = createClass({
|
|||||||
this.savedBrew = res.body;
|
this.savedBrew = res.body;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('Saving Locally');
|
|
||||||
if(transfer) {
|
if(transfer) {
|
||||||
console.log('Moving to Local Storage');
|
|
||||||
const res = await request.post('/api')
|
const res = await request.post('/api')
|
||||||
.send(this.state.brew)
|
.send(this.state.brew)
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
@@ -209,12 +207,9 @@ const EditPage = createClass({
|
|||||||
console.log('Error Deleting Google Brew');
|
console.log('Error Deleting Google Brew');
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('GOT THIS SAVED BREW:');
|
|
||||||
console.log(res);
|
|
||||||
this.savedBrew = res.body;
|
this.savedBrew = res.body;
|
||||||
history.replaceState(null, null, `/edit/${this.savedBrew.editId}`); //update URL to match doc ID
|
history.replaceState(null, null, `/edit/${this.savedBrew.editId}`); //update URL to match doc ID
|
||||||
} else {
|
} else {
|
||||||
console.log('Updating existing local copy');
|
|
||||||
const res = await request
|
const res = await request
|
||||||
.put(`/api/update/${this.state.brew.editId}`)
|
.put(`/api/update/${this.state.brew.editId}`)
|
||||||
.send(this.state.brew)
|
.send(this.state.brew)
|
||||||
@@ -228,7 +223,6 @@ const EditPage = createClass({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Finished saving. About to merge saved brew with current');
|
|
||||||
this.setState((prevState)=>({
|
this.setState((prevState)=>({
|
||||||
brew : _.merge({}, prevState.brew, {
|
brew : _.merge({}, prevState.brew, {
|
||||||
googleId : this.savedBrew.googleId ? this.savedBrew.googleId : null,
|
googleId : this.savedBrew.googleId ? this.savedBrew.googleId : null,
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homebrewery",
|
"name": "homebrewery",
|
||||||
"version": "2.8.2",
|
"version": "2.10.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "homebrewery",
|
"name": "homebrewery",
|
||||||
"description": "Create authentic looking D&D homebrews using only markdown",
|
"description": "Create authentic looking D&D homebrews using only markdown",
|
||||||
"version": "2.8.2",
|
"version": "2.10.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "12.16.x"
|
"node": "12.16.x"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ app.get('/user/:username', async (req, res, next)=>{
|
|||||||
let googleBrews = [];
|
let googleBrews = [];
|
||||||
|
|
||||||
if(req.account && req.account.googleId){
|
if(req.account && req.account.googleId){
|
||||||
console.log('GETTING DATA FOR USER PAGE');
|
|
||||||
googleBrews = await GoogleActions.listGoogleBrews(req, res)
|
googleBrews = await GoogleActions.listGoogleBrews(req, res)
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
console.error(err);
|
console.error(err);
|
||||||
@@ -202,7 +201,7 @@ app.use((req, res)=>{
|
|||||||
account : req.account,
|
account : req.account,
|
||||||
};
|
};
|
||||||
templateFn('homebrew', props)
|
templateFn('homebrew', props)
|
||||||
.then((page)=>{console.log('^--- END OF REQUEST ---^'); res.send(page);})
|
.then((page)=>{res.send(page);})
|
||||||
.catch((err)=>{
|
.catch((err)=>{
|
||||||
console.log(err);
|
console.log(err);
|
||||||
return res.sendStatus(500);
|
return res.sendStatus(500);
|
||||||
|
|||||||
@@ -14,8 +14,6 @@ const config = require('nconf')
|
|||||||
GoogleActions = {
|
GoogleActions = {
|
||||||
|
|
||||||
authCheck : (account, res)=>{
|
authCheck : (account, res)=>{
|
||||||
console.log('RUNNING AUTH CHECK');
|
|
||||||
|
|
||||||
if(!account || !account.googleId){ // If not signed into Google
|
if(!account || !account.googleId){ // If not signed into Google
|
||||||
const err = new Error('Not Signed In');
|
const err = new Error('Not Signed In');
|
||||||
err.status = 401;
|
err.status = 401;
|
||||||
@@ -39,18 +37,16 @@ GoogleActions = {
|
|||||||
}
|
}
|
||||||
account.googleAccessToken = tokens.access_token;
|
account.googleAccessToken = tokens.access_token;
|
||||||
const JWTToken = token.generateAccessToken(account);
|
const JWTToken = token.generateAccessToken(account);
|
||||||
console.log('Updated Access Token');
|
|
||||||
|
|
||||||
//Save updated token to cookie
|
//Save updated token to cookie
|
||||||
res.cookie('nc_session', JWTToken, { maxAge: 1000*60*60*24*365, path: '/', sameSite: 'lax' });
|
//res.cookie('nc_session', JWTToken, { maxAge: 1000*60*60*24*365, path: '/', sameSite: 'lax' });
|
||||||
//res.cookie('nc_session', JWTToken, {maxAge: 1000*60*60*24*365, path: '/', sameSite: 'lax', domain: '.naturalcrit.com'});
|
res.cookie('nc_session', JWTToken, { maxAge: 1000*60*60*24*365, path: '/', sameSite: 'lax', domain: '.naturalcrit.com' });
|
||||||
});
|
});
|
||||||
|
|
||||||
return oAuth2Client;
|
return oAuth2Client;
|
||||||
},
|
},
|
||||||
|
|
||||||
getGoogleFolder : async (auth)=>{
|
getGoogleFolder : async (auth)=>{
|
||||||
console.log('getting google folder');
|
|
||||||
const drive = google.drive({ version: 'v3', auth: auth });
|
const drive = google.drive({ version: 'v3', auth: auth });
|
||||||
|
|
||||||
fileMetadata = {
|
fileMetadata = {
|
||||||
@@ -69,8 +65,6 @@ GoogleActions = {
|
|||||||
let folderId;
|
let folderId;
|
||||||
|
|
||||||
if(obj.data.files.length == 0){
|
if(obj.data.files.length == 0){
|
||||||
console.log('no folders found'); // CREATE APP FOLDER
|
|
||||||
|
|
||||||
const obj = await drive.files.create({
|
const obj = await drive.files.create({
|
||||||
resource : fileMetadata
|
resource : fileMetadata
|
||||||
})
|
})
|
||||||
@@ -104,12 +98,7 @@ GoogleActions = {
|
|||||||
return console.error(`Error Listing Google Brews: ${err}`);
|
return console.error(`Error Listing Google Brews: ${err}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(obj.data.files.length) {
|
if(!obj.data.files.length) {
|
||||||
console.log('List Google Brews:');
|
|
||||||
obj.data.files.map((file)=>{
|
|
||||||
console.log(`${file.name} (${file.id})`);
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
console.log('No files found.');
|
console.log('No files found.');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,7 +161,6 @@ GoogleActions = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
newGoogleBrew : async (auth, brew)=>{
|
newGoogleBrew : async (auth, brew)=>{
|
||||||
console.log('CREATE GOOGLE BREW');
|
|
||||||
const drive = google.drive({ version: 'v3', auth: auth });
|
const drive = google.drive({ version: 'v3', auth: auth });
|
||||||
|
|
||||||
const media = {
|
const media = {
|
||||||
@@ -288,7 +276,6 @@ GoogleActions = {
|
|||||||
|
|
||||||
deleteGoogleBrew : async (req, res, id)=>{
|
deleteGoogleBrew : async (req, res, id)=>{
|
||||||
|
|
||||||
console.log('trying to delete google brew');
|
|
||||||
oAuth2Client = GoogleActions.authCheck(req.account, res);
|
oAuth2Client = GoogleActions.authCheck(req.account, res);
|
||||||
const drive = google.drive({ version: 'v3', auth: oAuth2Client });
|
const drive = google.drive({ version: 'v3', auth: oAuth2Client });
|
||||||
|
|
||||||
|
|||||||
@@ -32,11 +32,7 @@ const newBrew = (req, res)=>{
|
|||||||
delete brew.shareId;
|
delete brew.shareId;
|
||||||
delete brew.googleId;
|
delete brew.googleId;
|
||||||
|
|
||||||
console.log('creating new local file using this data:');
|
|
||||||
console.log(brew);
|
|
||||||
const newHomebrew = new HomebrewModel(brew);
|
const newHomebrew = new HomebrewModel(brew);
|
||||||
console.log('this is the new local homebrew');
|
|
||||||
console.log(newHomebrew);
|
|
||||||
// Compress brew text to binary before saving
|
// Compress brew text to binary before saving
|
||||||
newHomebrew.textBin = zlib.deflateRawSync(newHomebrew.text);
|
newHomebrew.textBin = zlib.deflateRawSync(newHomebrew.text);
|
||||||
// Delete the non-binary text field since it's not needed anymore
|
// Delete the non-binary text field since it's not needed anymore
|
||||||
@@ -48,16 +44,13 @@ const newBrew = (req, res)=>{
|
|||||||
return res.status(500).send(`Error while creating new brew, ${err.toString()}`);
|
return res.status(500).send(`Error while creating new brew, ${err.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('NEW BREW. gOING TO RETURN THIS:');
|
|
||||||
obj = obj.toObject();
|
obj = obj.toObject();
|
||||||
obj.gDrive = false;
|
obj.gDrive = false;
|
||||||
console.log(obj);
|
|
||||||
return res.status(200).send(obj);
|
return res.status(200).send(obj);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateBrew = (req, res)=>{
|
const updateBrew = (req, res)=>{
|
||||||
console.log('UPDATE LOCAL');
|
|
||||||
HomebrewModel.get({ editId: req.params.id })
|
HomebrewModel.get({ editId: req.params.id })
|
||||||
.then((brew)=>{
|
.then((brew)=>{
|
||||||
brew = _.merge(brew, req.body);
|
brew = _.merge(brew, req.body);
|
||||||
@@ -74,13 +67,8 @@ const updateBrew = (req, res)=>{
|
|||||||
brew.markModified('authors');
|
brew.markModified('authors');
|
||||||
brew.markModified('systems');
|
brew.markModified('systems');
|
||||||
|
|
||||||
console.log('saving this brew');
|
|
||||||
console.log(brew);
|
|
||||||
|
|
||||||
brew.save((err, obj)=>{
|
brew.save((err, obj)=>{
|
||||||
if(err) throw err;
|
if(err) throw err;
|
||||||
console.log('sending this updated brew:');
|
|
||||||
console.log(obj);
|
|
||||||
return res.status(200).send(obj);
|
return res.status(200).send(obj);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@@ -123,8 +111,6 @@ const deleteBrew = (req, res)=>{
|
|||||||
const newGoogleBrew = async (req, res, next)=>{
|
const newGoogleBrew = async (req, res, next)=>{
|
||||||
let oAuth2Client;
|
let oAuth2Client;
|
||||||
|
|
||||||
console.log('newGoogleBrew (API)');
|
|
||||||
|
|
||||||
try { oAuth2Client = GoogleActions.authCheck(req.account, res); } catch (err) { return res.status(err.status).send(err.message); }
|
try { oAuth2Client = GoogleActions.authCheck(req.account, res); } catch (err) { return res.status(err.status).send(err.message); }
|
||||||
|
|
||||||
const brew = req.body;
|
const brew = req.body;
|
||||||
|
|||||||
@@ -21,9 +21,6 @@ const generateAccessToken = (account)=>{
|
|||||||
delete payload.password;
|
delete payload.password;
|
||||||
delete payload._id;
|
delete payload._id;
|
||||||
|
|
||||||
console.log('THE PAYLOAD');
|
|
||||||
console.log(payload);
|
|
||||||
|
|
||||||
const secret = config.get('authentication_token_secret');
|
const secret = config.get('authentication_token_secret');
|
||||||
|
|
||||||
const token = jwt.encode(payload, secret);
|
const token = jwt.encode(payload, secret);
|
||||||
|
|||||||
Reference in New Issue
Block a user