1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.OAuth do
6 def parse_scopes(nil) do
10 def parse_scopes(scopes) when is_list(scopes) do
14 def parse_scopes(scopes) do
22 else: String.split(scopes, [" ", ","])