This file contains 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
// Help file for those experiencing the unmovable 401 for the passport-jwt auth implementation with nest. | |
// make sure to keep all configuration exactly like in the documentation -- this is in addition to that, not to replace that. | |
// unless directly specified | |
// STRATEGY | |
import { Injectable } from '@nestjs/common'; | |
import { Strategy, ExtractJwt } from 'passport-jwt'; |
This file contains 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
export const Prefixes = [ | |
{ country: "United Kingdom", value: 44 }, | |
{ country: "United States", value: 1 }, | |
{ country: "Algeria", value: 213 }, | |
{ country: "Andorra", value: 376 }, | |
{ country: "Angola", value: 244 }, | |
{ country: "Anguilla", value: 1264 }, | |
{ country: "Antigua & Barbuda", value: 1268 }, | |
{ country: "Argentina", value: 54 }, | |
{ country: "Armenia", value: 374 }, |
This file contains 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
export enum Prefixes { | |
UK = 44, | |
USA = 1, | |
Algeria = 213, | |
Andorra = 376, | |
Angola = 244, | |
Anguilla = 1264, | |
AntiguaBarbuda = 1268, | |
Argentina = 54, | |
Armenia = 374, |