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
/** | |
* Code removed for brevity. | |
*/ | |
import Paseto from 'paseto.js'; | |
class AuthenticationService { | |
... | |
public async register(userData: CreateUserDto) { |
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
/** | |
* ... Some lines omitted for brevity. | |
*/ | |
import * as QRCode from 'qrcode'; | |
class AuthenticationService { | |
... | |
public async respondWithQRCode(data: string, response: Response) { | |
QRCode.toFileStream(response, data); |
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
/** | |
* ... Some lines omitted for brevity. | |
*/ | |
import * as speakeasy from 'speakeasy'; | |
class AuthenticationService { | |
... | |
public getTwoFactorAuthenticationCode() { |
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
{ | |
"files.eol": "\n", | |
"editor.formatOnSave": true, | |
"[javascript]": { | |
"editor.formatOnSave": false | |
}, | |
"[typescript]": { | |
"editor.formatOnSave": false | |
}, | |
"eslint.autoFixOnSave": true, |
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
/* eslint-disable no-undef */ | |
module.exports = { | |
singleQuote: true | |
}; |
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
module.exports = { | |
... | |
plugins: ['ember', 'prettier'], // Add Prettier to our plugins | |
extends: [ | |
'eslint:recommended', | |
'plugin:ember/recommended', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:prettier/recommended' // This is the plugin we add | |
], | |
... |
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
# See https://help.github.com/ignore-files/ for more about ignoring files. | |
# compiled output | |
/dist/ | |
/tmp/ | |
# dependencies | |
/bower_components/ | |
/node_modules/ |
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
module.exports = { | |
... | |
parser: '@typescript-eslint/parser', // This is the parser we will use | |
... | |
extends: [ | |
'eslint:recommended', | |
'plugin:ember/recommended', | |
'plugin:@typescript-eslint/recommended', // This is the plugin we add | |
], | |
... |