Current section
Files
Jump to
Current section
Files
lib/ex_gcloud_pubsub_puller/gcloud/tokens.ex
defmodule ExGcloudPubsubPuller.Gcloud.Tokens do
@moduledoc """
Makes Goth.Token
"""
@doc """
Creates a Goth.Token with pubsub scope
"""
@spec create :: {:ok, Goth.Token.t()}
def create do
Goth.Token.for_scope("https://www.googleapis.com/auth/pubsub")
end
end