Login with Password

import authefyNodeClient from './path/to/@authefy/node-client';

await authefyNodeClient.token.authenticate({
    grantType: 'password',
    username: 'hopafk',
    password: 'zobluf'
});

// returns: { accessToken: string; refreshToken: string; expiresIn: number; }

Last updated

Was this helpful?