adonisjs / ally

AdonisJS Social Authentication Provider
MIT License
159 stars 53 forks source link

'@poppinss/oauth-client' does not provide an export named 'Oauth1Client' #145

Closed tom-brulin closed 1 year ago

tom-brulin commented 1 year ago

Package version

"@adonisjs/core": "^6.1.5-26", "@adonisjs/ally": "^5.0.0-4"

Node.js and npm version

v20.7.0 (npm v10.1.0)

Explaination

After installing ally package I have this error

SyntaxError: The requested module '@poppinss/oauth-client' does not provide an export named 'Oauth1Client'
at ... /node_modules/ adonisjs/ally/build/src/abstract_drivers/oauth1.js:10
thetutlage commented 1 year ago

Yup, comes from here. https://github.com/poppinss/oauth-client/releases/tag/v5.1.0-4

The latest release of ally will fix it. However, do note the value of token.expiresAt will no longer be a luxon DateTime instance. It is a regular JavaScript Date object.

https://github.com/adonisjs/ally/releases/tag/v5.0.0-5

thetutlage commented 1 year ago

Feel free to re-open the issue, if the issue persists