mirror of
https://github.com/Dan6erbond/sk-auth.git
synced 2025-04-23 01:16:26 +02:00
23 lines
559 B
JavaScript
23 lines
559 B
JavaScript
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
class Provider {
|
|
constructor(config) {
|
|
this.config = config;
|
|
this.id = config.id;
|
|
}
|
|
getUri(svelteKitAuth, path, host) {
|
|
return svelteKitAuth.getUrl(path, host);
|
|
}
|
|
getCallbackUri(svelteKitAuth, host) {
|
|
return this.getUri(svelteKitAuth, `${"/callback/"}${this.id}`, host);
|
|
}
|
|
getSigninUri(svelteKitAuth, host) {
|
|
return this.getUri(svelteKitAuth, `${"/signin/"}${this.id}`, host);
|
|
}
|
|
}
|
|
|
|
exports.Provider = Provider;
|
|
//# sourceMappingURL=base.js.map
|