File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2424 // Step 1. Check the token
2525 // At this point we should have a good token. But we
2626 // double-check here to enable a better UX to the user.
27- const tokenOK = req . dsAuth . checkToken ( minimumBufferMin ) ;
28- if ( ! tokenOK ) {
27+ const isTokenOK = req . dsAuth . checkToken ( minimumBufferMin ) ;
28+ if ( ! isTokenOK ) {
2929 req . flash ( 'info' , 'Sorry, you need to re-authenticate.' ) ;
3030 // Save the current operation so it will be resumed after authentication
3131 req . dsAuth . setEg ( req , eg ) ;
7373 // If needed, now is the best time to ask the user to authenticate
7474 // since they have not yet entered any information into the form.
7575
76- let tokenOK = req . dsAuth . checkToken ( ) ;
77- if ( tokenOK ) {
76+ let isTokenOK = req . dsAuth . checkToken ( ) ;
77+ if ( isTokenOK ) {
7878 try {
7979 await getOrganizationId ( req ) ;
8080
Original file line number Diff line number Diff line change 2424 // Step 1. Check the token
2525 // At this point we should have a good token. But we
2626 // double-check here to enable a better UX to the user.
27- const tokenOK = req . dsAuth . checkToken ( minimumBufferMin ) ;
28- if ( ! tokenOK ) {
27+ const isTokenOK = req . dsAuth . checkToken ( minimumBufferMin ) ;
28+ if ( ! isTokenOK ) {
2929 req . flash ( 'info' , 'Sorry, you need to re-authenticate.' ) ;
3030 // Save the current operation so it will be resumed after authentication
3131 req . dsAuth . setEg ( req , eg ) ;
7373 // If needed, now is the best time to ask the user to authenticate
7474 // since they have not yet entered any information into the form.
7575
76- let tokenOK = req . dsAuth . checkToken ( ) ;
77- if ( tokenOK ) {
76+ let isTokenOK = req . dsAuth . checkToken ( ) ;
77+ if ( isTokenOK ) {
7878 try {
7979 await getOrganizationId ( req ) ;
8080
You can’t perform that action at this time.
0 commit comments