sources/oauth: add callback URL to api

This commit is contained in:
Jens Langhammer
2021-02-09 16:47:49 +01:00
parent 5dab198c47
commit 45f1d95bf9
6 changed files with 79 additions and 44 deletions

View File

@ -0,0 +1,22 @@
import { DefaultClient } from "../Client";
import { Source } from "../Sources";
export class OAuthSource extends Source {
provider_type: string;
request_token_url: string;
authorization_url: string;
access_token_url: string;
profile_url: string;
consumer_key: string;
callback_url: string;
constructor() {
super();
throw Error();
}
static get(slug: string): Promise<OAuthSource> {
return DefaultClient.fetch<OAuthSource>(["sources", "oauth", slug]);
}
}