#AuthenticateOptions in remix-auth v4.0.0

1 messages · Page 1 of 1 (latest)

gloomy hazel
#

Looking at the remix-auth docs, Create a strategy suggests you can provide options: Strategy.AuthenticateOptions as the last argument to the custom strategy authenticate function, as was the case in v3. However, the implementation of Authenticator suggests it's no longer possible, and there's no Strategy.AuthenticateOptions in the typedefs.

On my team, we've been using the options argument to pass context to verify(); in our app, context.em contains an instance of mikro-orm's EntityManager . Right now this is blocking us from upgrading to [email protected], but maybe there's a different pattern we should be using here? (For instance: should we be attaching em to request somehow instead?)

gloomy hazel
#

@crystal lodge

crystal lodge
#

The docs are bad, there are no options anymore