View Source BtrzAuth.Plug.AddPremiumFromProviders (BtrzAuth v1.3.0)

Looks for the provider_ids in the query params and fetchs its premium keys using account data under conn.private.account saved by BtrzAuth.Plug.VerifyApiKey (the order of the plugs is very important!)

This plug will look for providerId or provider_id or a list of comma separated ids in providerIds or provider_ids.

This plug assumes that BtrzAuth.Plug.VerifyProviders already verified that the providers are valid for the account. If the passed provider/s have premium keys, these will be added to the ones of the conn.private.account.

Example

plug BtrzAuth.Plug.AddPremiumFromProviders

Summary

Functions