-
Notifications
You must be signed in to change notification settings - Fork 6
Generate OAthu Credentials for email
Rafael J. Rodriguez edited this page Apr 20, 2017
·
1 revision
You are required to use Gmail for sending emails to your user. You will need to generate credentials that will then be needed on the .env
file.
- Go to Google Dev Console.
- Enable Gmail API.
- Create the project, I named mine MangaDB.
- Click
Create credentials
and select OAuth Client credentials. - Give it a name, use
https://developers.google.com/oauthplayground
for theAuthorized redirect URIs
and copy the client id and secret. - Go to OAuth 2.0 Playground and on the gear on the top right:
- Tick
Use your own OAuth credentials
- Provide your credentials
- Use
https://mail.google.com
- Copy your refresh token to
.env
file.
- Tick