it might be technically legal, but it's extremely inappropriate, especially if you are a minor. you should report her. i believe you that it's your psychiatrist but i'm including both psychiatrist and psychologist below because the terms are frequently confused.
this is the page to report a psychologist, who is not a doctor. they only do talk therapy and cannot prescribe medications. https://www.oregon.gov/psychology/pages/complaint.aspx
this is the page to report a psychiatrist, who might do talk therapy or might now, but regardless they are a medical doctor and can prescribe medication. https://www.oregon.gov/omb/investigations/pages/how-to-file-a-complaint.aspx
i am really sorry this happened to you, it is really not okay. i wish you peace and healing.