Skip to content

Commit

Permalink
Update zoho.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 authored Oct 17, 2022
1 parent 4d587a3 commit e96cb54
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/zoho.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ export default class Github extends AbstractOAuth<Profile> {
/**
* https://www.zoho.com/accounts/protocol/oauth/web-apps/authorization.html
*/
getParams = (state?: string, scopes: string[] = ['AaaServer.profile.Read']) => {
getParams = (state?: string, scopes: string[] = ['AaaServer.profile.Read'], access_type: 'online' | 'offline' = 'offline') => {
const response_type = "code";
const prompt = "consent";
const scope = scopes.join(',');

const params = {
response_type: "code",
scope,
prompt: "consent",
response_type,
prompt,
access_type,
client_id: this.client_id,
redirect_uri: this.redirect_uri,
};
Expand Down

0 comments on commit e96cb54

Please sign in to comment.