Login with Password

requires username and password

import authefyWebClient from './path/to/@authefy/web-client';

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

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

Last updated

Was this helpful?