View 2FA codes from iMessage and Email (Apple Mail or Gmail) in Raycast.
All preferences can be customized through Raycast Settings > Extensions > iMessage 2FA
| Name | Description | Default Value | Required |
|---|---|---|---|
Enabled Sources | Choose between iMessage, Email, or both | both | true |
Email Source | Choose between Apple Mail or Gmail | applemail | true |
Gmail OAuth Client ID | Client ID for Gmail authentication | - | Only if using Gmail |
Default View | Default source to show when both are enabled | all | false |
Search unit for 2FA | Time unit for searching messages (minutes/hours/days) | minutes | true |
Search amount for 2FA | Number of units to look back for codes | 5 | true |
Ignore already read messages | Skip messages that have been read | false | false |
The extension supports Gmail as an alternative to Apple Mail. The main advantage of using Gmail is that it doesn't require the Apple Mail app to be running in the background.
To use Gmail:
For now you need to create your own OAuth Client ID to be able to use this extension. Getting a production enabled OAuth Client ID is complicated but is planned in the future.
⚠️ The following description can change over time. Make sure to obtain an OAuth key and not an API key!
You can search on Google or YouTube to get a better process description like e.g. this blog post.
Goto Google Developers Console
Make sure that you logged in with the Google Account which will be associated with your new OAuth key
Create a project and named it e.g. Raycast
This step take some seconds until the project is created.
Enable the Gmail API
Enable buttonEnable OAuth
OAuth consent screen on the left sideExternal and click CreateApp Name type RaycastUser Support Mail type your own email addressDeveloper Contact Info type your own email addressSave and ContinueTest Users and add the email address you wanna manage via RaycastCredentials on the left sideCreate Credentials on the top (blue text)OAuth client IDApplication Type choose iOSName type RaycastBundle ID type com.raycastCreate