ExShopifyApp.AccessToken (ex_shopify_app v0.1.1)

Access token management. Docs: https://shopify.dev/docs/apps/build/authentication-authorization/access-tokens/token-exchange#example

Summary

Functions

Exchange a session token for an access token.

Functions

client(shop)

@spec client(shop()) :: Tesla.Client.t()

fetch(shop, session_token, type \\ :offline)

@spec fetch(shop(), String.t(), token_type()) ::
  {:ok, token()} | {:error, Tesla.Env.t()}

Exchange a session token for an access token.