Current section

Files

Jump to
elixir_google_drive_api lib elixir_google_drive_api oauth.ex
Raw

lib/elixir_google_drive_api/oauth.ex

defmodule ElixirGoogleDriveApi.Oauth do
@auth_scope "https://www.googleapis.com/auth/drive"
def token do
{:ok, %{token: token}} = Goth.Token.for_scope(@auth_scope)
token
end
end