Authentication library for use with SvelteKit featuring built-in OAuth providers and zero restriction customization!
577
stars
70
forks
source link
[ENHANCEMENT] Enhanced Types, Improved OAuth2 Configuration and Bug Fixes #16
Closed
Dan6erbond closed 3 years ago
Overview
Use generic types to create OAuth2 providers and improve typing of
profile()
callback and internal methods.Types
OAuth2BaseProvider
forProfileType
andTokenType
.keyof FacebookProfile
infields
param.OAuth2 Provider Config
profile()
callback; profile and tokens types.contentType
config value to OAuth2 provider config for token request.Bug Fixes
Auth
class and splitgetPath()
andgetUrl()
methods.RegExp()
for path-checking with varyingbasePath
s.Added Helpers
ucFirst()
helper to uppercase first letter of a string.