Skip to content

Commit

Permalink
Require strings in tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
lnikkila committed Mar 14, 2017
1 parent e6245ff commit b2ad202
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/exquickbooks/access_token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ defmodule ExQuickBooks.AccessToken do
The token is technically a public/private key pair:
- `:token` -
The public key binary.
The public key string.
- `:token_secret` -
The private key binary.
The private key string.
- `:realm_id` -
ID of the Realm this token is associated with.
Expand All @@ -25,9 +25,9 @@ defmodule ExQuickBooks.AccessToken do
"""

@type t :: %__MODULE__{
token: binary,
token_secret: binary,
realm_id: binary
token: String.t,
token_secret: String.t,
realm_id: String.t
}

@enforce_keys [
Expand Down
10 changes: 5 additions & 5 deletions lib/exquickbooks/request_token.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ defmodule ExQuickBooks.RequestToken do
The token is technically a public/private key pair:
- `:token` -
The public key binary.
The public key string.
- `:token_secret` -
The private key binary.
The private key string.
- `:redirect_url` -
URL where you should redirect the user to continue authentication.
Expand All @@ -25,9 +25,9 @@ defmodule ExQuickBooks.RequestToken do
"""

@type t :: %__MODULE__{
token: binary,
token_secret: binary,
redirect_url: binary
token: String.t,
token_secret: String.t,
redirect_url: String.t
}

@enforce_keys [
Expand Down

0 comments on commit b2ad202

Please sign in to comment.