WixAppStrategy

WixAppStrategy

new WixAppStrategy(options, verify) → {WixAppStrategy}

WixAppStrategy constructor.

Source:
See:

WixAppStrategy constructor.

The authentication strategy authenticates requests based on the instance query param, sent by WIX Applications

Example
passport.use(new LocalStrategy({secret: 'your-wix-secret'},
      function verifyCallback(instance, done) {
        WixApp.findOne({ appId: instance.instanceId }, function (err, wixapp) {
          done(err, wixapp);
        });
      }
    ));
Parameters:
Name Type Description
options object

Options for strategy

Properties
Name Type Attributes Default Description
secret string

Your WIX-secret

signDateThreshold boolean | number | function <optional>
false

callback for validation of the signDate (passed by WIX).

passReqToCallback boolean <optional>
false

pass Express req is the first argument to the verify callback when true

verify function

Verification callback

Returns:

WixAppStrategy instance .

Type
WixAppStrategy

Methods

(package) authenticate(req)

Authenticate request based on the contents of a Wix query-parameters.

Source:

Authenticate request based on the contents of a Wix query-parameters.

Parameters:
Name Type Description
req Object