Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): improved logging / renames / new exports #6085

Merged
merged 36 commits into from
Dec 22, 2022
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
cc77681
fix(core): fix some provider imports
balazsorban44 Dec 16, 2022
8d95e28
fix: clean up logger/errors
balazsorban44 Dec 16, 2022
28cd5dc
internal refactors
balazsorban44 Dec 16, 2022
7af21d0
rename
balazsorban44 Dec 16, 2022
b3a19e0
revert moduleResolution
balazsorban44 Dec 16, 2022
d8010b4
revert
balazsorban44 Dec 16, 2022
9d5758d
add ctodo comment
balazsorban44 Dec 16, 2022
3f04a35
fix sveltekit
balazsorban44 Dec 16, 2022
66fecd7
revert some name changes to keep the PR minimal
balazsorban44 Dec 16, 2022
c0814d7
more reverts
balazsorban44 Dec 16, 2022
d8b63ef
remove default export
balazsorban44 Dec 16, 2022
fc35018
reverts
balazsorban44 Dec 16, 2022
82698fd
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 16, 2022
c07156b
add examlpe to main entry
balazsorban44 Dec 16, 2022
200665b
add jsdoc linting
balazsorban44 Dec 16, 2022
d23beb8
add API reference generation
balazsorban44 Dec 16, 2022
6e8f10c
format
balazsorban44 Dec 16, 2022
8706f39
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 17, 2022
fe44976
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 17, 2022
2c3bfc8
run prettier check at lint
balazsorban44 Dec 17, 2022
b8993db
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 18, 2022
eb157c0
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 19, 2022
08878cc
use `ts` instead of `js` for code block language
balazsorban44 Dec 19, 2022
8132d65
update types import paths
balazsorban44 Dec 19, 2022
8f64dd2
chore: type updates
balazsorban44 Dec 19, 2022
94329cc
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 19, 2022
50656c4
fix import
balazsorban44 Dec 19, 2022
3fbad39
revert to `signIn` for now
balazsorban44 Dec 19, 2022
a9053e6
Merge branch 'main' into refactor/cleanup
balazsorban44 Dec 22, 2022
b9c5f04
revert sveltekit changes
balazsorban44 Dec 22, 2022
2c1b154
move types
balazsorban44 Dec 22, 2022
af70a6e
fix types entrypoint
balazsorban44 Dec 22, 2022
5452d1c
update submodule docs
balazsorban44 Dec 22, 2022
595e812
improve provider/adapter docs
balazsorban44 Dec 22, 2022
006ae6e
expose errors as module
balazsorban44 Dec 22, 2022
3412adc
remove manual errors from sidebar
balazsorban44 Dec 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add examlpe to main entry
  • Loading branch information
balazsorban44 committed Dec 16, 2022
commit c07156b15a723f48d51c60f5231f4a5fc65c5f83
20 changes: 19 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,25 @@ import type { Provider } from "./providers/index.js"

export * from "./lib/types.js"

/** The core functionality provided by Auth.js. */
/**
* Core functionality provided by Auth.js.
*
* Receives a standard {@link Request} and returns a {@link Response}.
*
* @example
* ```js
* import Auth from "@auth/core"
*
* const request = new Request("https://example.com")
* const resposne = await AuthHandler(request, {
* providers: [...],
* secret: "...",
* trustHost: true,
* })
*```
* @see [Documentation](https://authjs.dev)
* @link {Provider}
*/
export async function Auth(
request: Request,
config: AuthConfig
Expand Down