Skip to content
View ChaoLiangSuper's full-sized avatar
  • Melbourne

Organizations

@lighthouse-com

Block or report ChaoLiangSuper

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. migrate.js migrate.js
    1
    const sequelize = new Sequelize(config);
    2
    const umzug     = new Umzug({
    3
      storage: "sequelize",
    4
    
                  
    5
      storageOptions: {
  2. Stronger Encryption and Decryption i... Stronger Encryption and Decryption in typescript
    1
    import crypto from 'crypto';
    2
    
                  
    3
    const ALGORITHM = 'aes-256-cbc';
    4
    const ENCODING = 'hex';
    5
    const IV_LENGTH = 16;
  3. Example of refreshing tokens with jwt Example of refreshing tokens with jwt
    1
    /**
    2
     * Example to refresh tokens using https://github.com/auth0/node-jsonwebtoken
    3
     * It was requested to be introduced at as part of the jsonwebtoken library,
    4
     * since we feel it does not add too much value but it will add code to mantain
    5
     * we won't include it.
  4. JsonWebToken usage 'generate', 'veri... JsonWebToken usage 'generate', 'verify' and 'refresh' token
    1
    import jwt from 'jsonwebtoken';
    2
    
                  
    3
    interface payload {
    4
      data: object;
    5
    }