jbreckmckye / electron-auth0-login

Helper widget for Auth0 authentication in Electron desktop apps
MIT License
27 stars 19 forks source link

Readme function name #36

Closed AriVagelatos-KSO closed 2 years ago

AriVagelatos-KSO commented 2 years ago

Hi, In the readme files import a function called getToken:

import { getToken } from './auth'; but it seems the function is named auth0Login:

export default auth0Login({

jbreckmckye commented 2 years ago

The default export in that JS example is the return value of auth0Login(...), which contains the method getToken, as it is an instance of library.