ejeklint/hapi-parse-session-token

View on GitHub

Showing 2 of 2 total issues

Function implementation has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

internals.implementation = function (server, options) {

    Hoek.assert(options, 'Missing Parse auth strategy options');
    Hoek.assert(options.parse_rest_api_key, 'Missing parse_rest_api_key');
    Hoek.assert(options.parse_app_id, 'Missing parse_app_id');
Severity: Minor
Found in lib/index.js - About 1 hr to fix

    Function authenticate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            authenticate: function (request, reply) {
    
                const token = request.headers['x-parse-session-token'];
    
                if (!token) {
    Severity: Minor
    Found in lib/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language