Skip to content
Snippets Groups Projects
Commit 1e6ebc60 authored by Felipe D'Abrantes's avatar Felipe D'Abrantes
Browse files

Add config file

parent c08f0809
No related branches found
No related tags found
1 merge request!15Add Friend service
export default {
JWT_SECRET: ""
}
import jwt, { Secret, JwtPayload } from 'jsonwebtoken';
import { Request, Response, NextFunction } from 'express';
import Config from '../../config'
export const SECRET_KEY: Secret = 'abcdefg12345';
export const SECRET_KEY: Secret = Config.JWT_SECRET;
export interface CustomJWTRequest extends Request {
token?: string | JwtPayload;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment