DefinitelyTyped/types/openid/openid-tests.ts

13 lines
269 B
TypeScript

import openid = require('openid');
const relyingParty = new openid.RelyingParty(
'http://example.com/verify',
null,
false,
false,
[]);
relyingParty.authenticate('...', false, (err, authUrl) => {});
relyingParty.verifyAssertion('...', (err, result) => {});