mirror of
				https://github.com/Dan6erbond/sk-auth.git
				synced 2025-10-26 10:22:56 +01: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
 |