You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the full login service is developed, I would appreciate it if we could have a basic auth setup for Villus based on default creds. Run the below function and then set context in Villus. Although I'm struggling to set the context after getting the token.
asyncfunctionlogInto(){constlogData=awaituseMutation(LoginDocument).execute({email: 'admin@example.com',password: 'changeme',});// Code to set context on Villus client for future requests. }logInto();
The text was updated successfully, but these errors were encountered:
The credentials (i.e. default token) should be stored in an environment variable which would serve as a feature flag for this use case. Maybe AUTH_DEFAULT_TOKEN ?
While the full login service is developed, I would appreciate it if we could have a basic auth setup for Villus based on default creds. Run the below function and then set context in Villus. Although I'm struggling to set the context after getting the token.
logaretm/villus#71
The text was updated successfully, but these errors were encountered: