-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise an error for
:user
token type with a login link inside
- Loading branch information
1 parent
7538b8c
commit b2dec1e
Showing
10 changed files
with
286 additions
and
77 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
module TwitchOAuth2 | ||
## Error during Twitch OAuth2 operations | ||
class Error < StandardError | ||
attr_reader :metadata | ||
|
||
def initialize(message, metadata = {}) | ||
super message | ||
|
||
@metadata = metadata | ||
end | ||
end | ||
end |
57 changes: 57 additions & 0 deletions
57
...lient/_check_tokens/when_token_type_is_user_/without_tokens/raises_an_error_with_link.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...en/when_token_type_is_application_/with_correct_client_credentials/returns_new_tokens.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 9 additions & 7 deletions
16
...als/raises_error_without_instructions.yml → ...rrect_client_credentials/raises_error.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
...client_credentials/returns_new_tokens.yml → ...is_user_/with_code/returns_new_tokens.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
...ttes/TwitchOAuth2_Client/_token/when_token_type_is_user_/without_code/raises_an_error.yml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.