-
Notifications
You must be signed in to change notification settings - Fork 28
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
Refactor: Providers create config instead of client #186
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4616798
Initial proposal for provider configs
jollytoad 9fe1168
Merge branch 'denoland:main' into providers-config
jollytoad e8d894b
refactor: migrate all providers to supply config instead of client
jollytoad 52c6f60
Merge branch 'main' into providers-config
jollytoad f6d96c5
add test for resolveRedirectUri
jollytoad 2594738
add assertStrictEquals dev dep
jollytoad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,4 @@ export { | |
setCookie, | ||
} from "https://deno.land/[email protected]/http/cookie.ts"; | ||
export { assert } from "https://deno.land/[email protected]/assert/assert.ts"; | ||
export { | ||
OAuth2Client, | ||
type OAuth2ClientConfig, | ||
OAuth2ResponseError, | ||
type Tokens, | ||
} from "https://deno.land/x/[email protected]/mod.ts"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed because nothing else requires this other than the _internal/oauth2_client.ts module |
||
export { SECOND } from "https://deno.land/[email protected]/datetime/constants.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ export { | |
assert, | ||
assertArrayIncludes, | ||
assertEquals, | ||
AssertionError, | ||
assertNotEquals, | ||
assertRejects, | ||
assertStrictEquals, | ||
assertStringIncludes, | ||
assertThrows, | ||
} from "https://deno.land/[email protected]/assert/mod.ts"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
// Copyright 2023 the Deno authors. All rights reserved. MIT license. | ||
export * from "./src/providers.ts"; | ||
export * from "./src/providers/custom.ts"; | ||
export * from "./src/config.ts"; | ||
export * from "./src/clear_oauth_sessions_and_tokens.ts"; | ||
export * from "./src/get_session_access_token.ts"; | ||
export * from "./src/handle_callback.ts"; | ||
export * from "./src/get_session_id.ts"; | ||
export * from "./src/sign_in.ts"; | ||
export * from "./src/sign_out.ts"; | ||
export type * from "./src/types.ts"; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to rejig this a little so that the test case could set the necessary env vars.