smee
smee

Reputation: 231

How to use OAuth2 token with gmail in a WebView in Electron?

I'm working on an Electron application that needs to render Gmail in a WebView. I've got to the point where I can authenticate via OAuth2 and get a token, but don't know what to do with it from there.

Fundamentally, I need a way to send the token to Google in a way that then loads the regular GMail web interface. Is this possible?

All wisdom appreciated!

Upvotes: 1

Views: 295

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117026

I think you have misunderstood the usage of the Gmail api.

I need a way to send the token to Google in a way that then loads the regular GMail web interface

The gmail api allows you to access a users Gmail account the data is returned in json format. If you want this displayed or formated in anyway that will be up to you.

There is no way to pass a Oauth token to anything that will load the gmail website only google can load that.

Upvotes: 1

Related Questions