1

I'm trying to set sessions request.session.set('request_token', oauth.request_token) and it is throwing

InvalidSecretKey > You have passed an invalid secret key of: your-secret-key. Make sure you have correctly added your secret key.

I did craft key --store to create a secret key and store it.

Masonite masonite==2.0.20 with pipenv for package mangement.

Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52

1 Answers1

3

Simply deactivated the virtual environment and enabling again solve the problem. Looks like pipenv cached the .env variables.

$ deactivate
$ pipenv shell
Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52