Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GmailClient::from_env() can't read .env file? #1

Open
mccombs opened this issue Aug 18, 2024 · 0 comments
Open

GmailClient::from_env() can't read .env file? #1

mccombs opened this issue Aug 18, 2024 · 0 comments

Comments

@mccombs
Copy link

mccombs commented Aug 18, 2024

Using the get_profile.rs example: https://github.com/libninjacom/gmail-rs/blob/33f26fd50b920bb6c5a54aed334ab4eb08281201/examples/get_profile.rs

Will return the following error called Result::unwrap()on anErr value: NotPresent

I'm currently using https://developers.google.com/oauthplayground to test so I have both a refresh and access token listed in my .env (GMAIL_ACCESS_TOKEN and GMAIL_REFRESH_TOKEN) but they are not recognized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant