Skip to content

Commit

Permalink
Revert "make success and error pages immutable, isolate changes from …
Browse files Browse the repository at this point in the history
…user application"

This reverts commit 213b935.
  • Loading branch information
wayneforrest committed Aug 9, 2024
1 parent 213b935 commit 6169f27
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/public/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,11 +543,8 @@ func WithSystemBrowserOptions(successPage []byte, errorPage []byte) interface {
func(a any) error {
switch t := a.(type) {
case *interactiveAuthOptions:
t.successPage = make([]byte, len(successPage))
copy(t.successPage, successPage)

t.errorPage = make([]byte, len(errorPage))
copy(t.errorPage, errorPage)
t.successPage = successPage
t.errorPage = errorPage
default:
return fmt.Errorf("unexpected options type %T", a)
}
Expand Down

0 comments on commit 6169f27

Please sign in to comment.